public class UpdateRobotsRequestHandler extends AbstractRequestHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
HTTP_PREFIX |
protected static String |
HTTP_WWW_PREFIX |
protected static String |
HTTPS_PREFIX |
protected static String |
HTTPS_WWW_PREFIX |
protected static String |
ROBOT_SUFFIX |
protected static String |
WWW_PREFIX |
Constructor and Description |
---|
UpdateRobotsRequestHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getMinUpdateTime() |
SimpleRedisRobotsCache |
getRobotsCache() |
boolean |
handleRequest(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Possibly handle an incoming HttpServletRequest, much like a normal
HttpServlet, but includes a return value.
|
void |
setMinUpdateTime(int minUpdateTime) |
void |
setRobotsCache(SimpleRedisRobotsCache robotsCache) |
getAccessPointPath, getBeanName, getInternalPort, getMapParam, getMapParamOrEmpty, getRequiredMapParam, getServletContext, registerPortListener, setAccessPointPath, setBeanName, setInternalPort, setServletContext, translateRequestPath, translateRequestPathQuery
protected static final String HTTP_PREFIX
protected static final String HTTPS_PREFIX
protected static final String WWW_PREFIX
protected static final String HTTP_WWW_PREFIX
protected static final String HTTPS_WWW_PREFIX
protected static final String ROBOT_SUFFIX
public int getMinUpdateTime()
public void setMinUpdateTime(int minUpdateTime)
public SimpleRedisRobotsCache getRobotsCache()
public void setRobotsCache(SimpleRedisRobotsCache robotsCache)
public boolean handleRequest(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws javax.servlet.ServletException, IOException
RequestHandler
httpRequest
- the incoming HttpServletRequesthttpResponse
- the HttpServletResponse to return data to the client.javax.servlet.ServletException
- for usual reasons.IOException
- for usual reasons.Copyright © 2005–2015 IIPC. All rights reserved.