|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.http.handler.RequestHandlerSupport
public class RequestHandlerSupport
A handler which implements all the methods. This handler accept all requests and is enabled by default. The handle method doesn't do anything. This class should be used as a base class for all implementation.
| Field Summary | |
|---|---|
static String |
PATH_API
A recommended context path which expose various api calls using RequestHandler implementations. |
| Constructor Summary | |
|---|---|
RequestHandlerSupport()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PATH_API
RequestHandler implementations.
| Constructor Detail |
|---|
public RequestHandlerSupport()
| Method Detail |
|---|
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
handle in interface RequestHandlerrequest - current HTTP requestresponse - current HTTP response
IOException - in case of I/O errorspublic boolean accept(javax.servlet.http.HttpServletRequest request)
accept in interface RequestHandlerrequest - current HTTP request
public boolean isEnabled()
isEnabled in interface RequestHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||