|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestHandler
Handler interface for components that process HTTP request. Typically implemented to provide api functionality for the WroFilter. Handlers are applied before the processing in the WroFilter, and only one handler can be applied. If one handler is applied, other handlers are skipped and processing is not performed.
It is recommended to accept requests for the uri's containing the following path:RequestHandlerSupport.PATH_API
.
Method Summary | |
---|---|
boolean |
accept(javax.servlet.http.HttpServletRequest request)
Determines if current request can be handled by this requestHandler |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the given request, generating a response. |
boolean |
isEnabled()
Used to determine if the RequestHandler is enabled |
Method Detail |
---|
void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- current HTTP requestresponse
- current HTTP response
IOException
- in case of I/O errorsboolean accept(javax.servlet.http.HttpServletRequest request)
request
- current HTTP request
boolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |