org.archive.wayback.resourcestore.locationdb
Class FileProxyServlet
java.lang.Object
org.archive.wayback.util.webapp.AbstractRequestHandler
org.archive.wayback.resourcestore.locationdb.FileProxyServlet
- All Implemented Interfaces:
- RequestHandler, org.springframework.beans.factory.BeanNameAware
public class FileProxyServlet
- extends AbstractRequestHandler
ServletRequestContext interface which uses a ResourceFileLocationDB to
reverse proxy an incoming HTTP request for a file by name to it's actual
back-end location. This will also forward HTTP byte range requests to the
final location.
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileProxyServlet
public FileProxyServlet()
handleRequest
public boolean handleRequest(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws IOException,
javax.servlet.ServletException
- Description copied from interface:
RequestHandler
- Possibly handle an incoming HttpServletRequest, much like a normal
HttpServlet, but includes a return value.
- Parameters:
httpRequest - the incoming HttpServletRequesthttpResponse - the HttpServletResponse to return data to the client.
- Returns:
- true if the RequestHandler returned a response to the client,
false otherwise
- Throws:
IOException - for usual reasons.
javax.servlet.ServletException - for usual reasons.
getLocationDB
public ResourceFileLocationDB getLocationDB()
- Returns:
- the locationDB
setLocationDB
public void setLocationDB(ResourceFileLocationDB locationDB)
- Parameters:
locationDB - the locationDB to set
getSocketTimeoutMs
public int getSocketTimeoutMs()
- Returns:
- the socketTimeoutMs
setSocketTimeoutMs
public void setSocketTimeoutMs(int socketTimeoutMs)
- Parameters:
socketTimeoutMs - the socketTimeoutMs to set
getConnectTimeoutMs
public int getConnectTimeoutMs()
- Returns:
- the connectTimeoutMs
setConnectTimeoutMs
public void setConnectTimeoutMs(int connectTimeoutMs)
- Parameters:
connectTimeoutMs - the connectTimeoutMs to set
Copyright © 2005-2011 Internet Archive. All Rights Reserved.