|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.google.web.bindery.requestfactory.server.RequestFactoryServlet
public class RequestFactoryServlet
Handles GWT RequestFactory JSON requests.
Constructor Summary | |
---|---|
RequestFactoryServlet()
Constructs a new RequestFactoryServlet with a
DefaultExceptionHandler . |
|
RequestFactoryServlet(ExceptionHandler exceptionHandler,
ServiceLayerDecorator... serviceDecorators)
Use this constructor in subclasses to provide a custom ExceptionHandler . |
Method Summary | |
---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes a POST to the server. |
static javax.servlet.http.HttpServletRequest |
getThreadLocalRequest()
Returns the thread-local HttpServletRequest . |
static javax.servlet.http.HttpServletResponse |
getThreadLocalResponse()
Returns the thread-local HttpServletResponse . |
static javax.servlet.ServletContext |
getThreadLocalServletContext()
Returns the thread-local ServletContext |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestFactoryServlet()
RequestFactoryServlet
with a
DefaultExceptionHandler
.
public RequestFactoryServlet(ExceptionHandler exceptionHandler, ServiceLayerDecorator... serviceDecorators)
ExceptionHandler
.
exceptionHandler
- an ExceptionHandler
instanceserviceDecorators
- an array of ServiceLayerDecorators that change how
the RequestFactory request processor interact with the domain
objectsMethod Detail |
---|
public static javax.servlet.http.HttpServletRequest getThreadLocalRequest()
HttpServletRequest
.
HttpServletRequest
instancepublic static javax.servlet.http.HttpServletResponse getThreadLocalResponse()
HttpServletResponse
.
HttpServletResponse
instancepublic static javax.servlet.ServletContext getThreadLocalServletContext()
ServletContext
ServletContext
associated with this servletprotected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
request
- an HttpServletRequest
instanceresponse
- an HttpServletResponse
instance
java.io.IOException
- if an internal I/O error occurs
javax.servlet.ServletException
- if an error occurs in the servlet
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |