/** * Overridden to load the gwt.codeserver.port system property. */ @Override public void init(ServletConfig config) throws ServletException { super.init(config); codeServerPort = getCodeServerPort(); }
validateThreadLocalData(); perThreadRequest.set(request); perThreadResponse.set(response); processPost(request, response); doUnexpectedFailure(e); } finally {
getThreadLocalResponse().reset(); } catch (IllegalStateException ex) { ServletContext servletContext = getServletContext(); RPCServletUtils.writeResponseForUnexpectedFailure(servletContext, getThreadLocalResponse(), e);
/** * Gets the <code>HttpServletResponse</code> object for the current call. It * is stored thread-locally so that simultaneous invocations can have * different response objects. */ protected final HttpServletResponse getThreadLocalResponse() { synchronized (this) { validateThreadLocalData(); return perThreadResponse.get(); } }
/** * Returns the strong name of the permutation, as reported by the client that * issued the request, or <code>null</code> if it could not be determined. * This information is encoded in the * {@value com.google.gwt.user.client.rpc.RpcRequestBuilder#STRONG_NAME_HEADER} * HTTP header. */ protected final String getPermutationStrongName() { return getThreadLocalRequest().getHeader(STRONG_NAME_HEADER); }
/** * Gets the <code>HttpServletRequest</code> object for the current call. It is * stored thread-locally so that simultaneous invocations can have different * request objects. */ protected final HttpServletRequest getThreadLocalRequest() { synchronized (this) { validateThreadLocalData(); return perThreadRequest.get(); } }
/** * Returns the strong name of the permutation, as reported by the client that * issued the request, or <code>null</code> if it could not be determined. * This information is encoded in the * {@value com.google.gwt.user.client.rpc.RpcRequestBuilder#STRONG_NAME_HEADER} * HTTP header. */ protected final String getPermutationStrongName() { return getThreadLocalRequest().getHeader(STRONG_NAME_HEADER); }
validateThreadLocalData(); perThreadRequest.set(request); perThreadResponse.set(response); processPost(request, response); doUnexpectedFailure(e); } finally {
/** * Overridden to load the gwt.codeserver.port system property. */ @Override public void init(ServletConfig config) throws ServletException { super.init(config); codeServerPort = getCodeServerPort(); }
getThreadLocalResponse().reset(); } catch (IllegalStateException ex) { ServletContext servletContext = getServletContext(); RPCServletUtils.writeResponseForUnexpectedFailure(servletContext, getThreadLocalResponse(), e);
/** * Gets the <code>HttpServletResponse</code> object for the current call. It * is stored thread-locally so that simultaneous invocations can have * different response objects. */ protected final HttpServletResponse getThreadLocalResponse() { synchronized (this) { validateThreadLocalData(); return perThreadResponse.get(); } }
/** * Returns the strong name of the permutation, as reported by the client that * issued the request, or <code>null</code> if it could not be determined. * This information is encoded in the * {@value com.google.gwt.user.client.rpc.RpcRequestBuilder#STRONG_NAME_HEADER} * HTTP header. */ protected final String getPermutationStrongName() { return getThreadLocalRequest().getHeader(STRONG_NAME_HEADER); }
validateThreadLocalData(); perThreadRequest.set(request); perThreadResponse.set(response); processPost(request, response); doUnexpectedFailure(e); } finally {
/** * Overridden to load the gwt.codeserver.port system property. */ @Override public void init(ServletConfig config) throws ServletException { super.init(config); codeServerPort = getCodeServerPort(); }
getThreadLocalResponse().reset(); } catch (IllegalStateException ex) { ServletContext servletContext = getServletContext(); RPCServletUtils.writeResponseForUnexpectedFailure(servletContext, getThreadLocalResponse(), e);
/** * Gets the <code>HttpServletRequest</code> object for the current call. It is * stored thread-locally so that simultaneous invocations can have different * request objects. */ protected final HttpServletRequest getThreadLocalRequest() { synchronized (this) { validateThreadLocalData(); return perThreadRequest.get(); } }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); String servicesParam = config.getInitParameter(BasicCommandService.PARAM_SERVICES); if (servicesParam != null) { String[] serviceToInstanciate = servicesParam.split(";"); if (serviceToInstanciate != null && serviceToInstanciate.length > 0) { for (String serviceName : serviceToInstanciate) { if (serviceName != null && serviceName.length() > 0) { try { this.getClass(); Class<?> serviceClass = Class.forName(serviceName); Object service = serviceClass.newInstance(); for (Class<?> serviceInterface : serviceClass.getInterfaces()) { this.injectService(serviceInterface, service); } } catch (ClassNotFoundException e) { throw new ServletException("Can not load service class " + serviceName, e); } catch (InstantiationException e) { throw new ServletException("Can not instantiate service " + serviceName, e); } catch (IllegalAccessException e) { throw new ServletException("Can not instantiate service " + serviceName, e); } } } } } }
/** * Gets the <code>HttpServletResponse</code> object for the current call. It * is stored thread-locally so that simultaneous invocations can have * different response objects. */ protected final HttpServletResponse getThreadLocalResponse() { synchronized (this) { validateThreadLocalData(); return perThreadResponse.get(); } }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); String servicesParam = config.getInitParameter(BasicCommandService.PARAM_SERVICES); if (servicesParam != null) { String[] serviceToInstanciate = servicesParam.split(";"); if (serviceToInstanciate != null && serviceToInstanciate.length > 0) { for (String serviceName : serviceToInstanciate) { if (serviceName != null && serviceName.length() > 0) { try { this.getClass(); Class<?> serviceClass = Class.forName(serviceName); Object service = serviceClass.newInstance(); for (Class<?> serviceInterface : serviceClass.getInterfaces()) { this.injectService(serviceInterface, service); } } catch (ClassNotFoundException e) { throw new ServletException("Can not load service class " + serviceName, e); } catch (InstantiationException e) { throw new ServletException("Can not instantiate service " + serviceName, e); } catch (IllegalAccessException e) { throw new ServletException("Can not instantiate service " + serviceName, e); } } } } } }
/** * Gets the <code>HttpServletRequest</code> object for the current call. It is * stored thread-locally so that simultaneous invocations can have different * request objects. */ protected final HttpServletRequest getThreadLocalRequest() { synchronized (this) { validateThreadLocalData(); return perThreadRequest.get(); } }