|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.http.handler.RequestHandlerSupport ro.isdc.wro.http.handler.ReloadCacheRequestHandler
public class ReloadCacheRequestHandler
This RequestHandler will reload the cache on HTTP requests to "wroAPI/reloadCache".
This handler is available only in debug mode by default. You can change this behavior by overridingRequestHandler.isEnabled()
method.
Field Summary | |
---|---|
static String |
ALIAS
The alias of this RequestHandler used for configuration. |
static String |
ENDPOINT_URI
API - reload cache method call |
Fields inherited from class ro.isdc.wro.http.handler.RequestHandlerSupport |
---|
PATH_API |
Constructor Summary | |
---|---|
ReloadCacheRequestHandler()
|
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 ALIAS
RequestHandler
used for configuration.
public static final String ENDPOINT_URI
Constructor Detail |
---|
public ReloadCacheRequestHandler()
Method Detail |
---|
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
handle
in interface RequestHandler
handle
in class RequestHandlerSupport
request
- current HTTP requestresponse
- current HTTP response
IOException
- in case of I/O errorspublic boolean accept(javax.servlet.http.HttpServletRequest request)
accept
in interface RequestHandler
accept
in class RequestHandlerSupport
request
- current HTTP request
public boolean isEnabled()
isEnabled
in interface RequestHandler
isEnabled
in class RequestHandlerSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |