|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServletRequestHandler
Request handler for servlet requests. This class helps to provide different implementations for attending web and web service requests and to distinguish between them ( using the handles() method ).
It also allows for implementations dealing with GET methods, and implementations dealing with POST methods.
In future framework implementations, this interface may be important to allow the inclusion of new behaviors and capabilities on the framework ( for example, by allowing a stateful web service implementation, or by supporting view technologies other than JSP ).
| Method Summary | |
|---|---|
ServletRequestContext |
getRequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get the request handler for the current request. |
RestController |
getRestController(ServletRequestContext context)
Get the Rest controller for a given request. |
void |
handleRequest(ServletRequestContext context,
RestController controller)
Generic method for handling requests, so different response strategies may be implemented. |
boolean |
handles(javax.servlet.http.HttpServletRequest request)
Check if the current request handler can handle the given request. |
| Method Detail |
|---|
boolean handles(javax.servlet.http.HttpServletRequest request)
ServletRequestContext getRequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
RestController getRestController(ServletRequestContext context)
void handleRequest(ServletRequestContext context,
RestController controller)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||