org.archive.wayback.resourcestore.locationdb
Class ResourceFileLocationDBServlet

java.lang.Object
  extended by org.archive.wayback.util.webapp.AbstractRequestHandler
      extended by org.archive.wayback.resourcestore.locationdb.ResourceFileLocationDBServlet
All Implemented Interfaces:
RequestHandler, org.springframework.beans.factory.BeanNameAware

public class ResourceFileLocationDBServlet
extends AbstractRequestHandler

ServletRequestContext enabling remote HTTP GET/POST access to a local ResourceFileLocationDB. See RemoveResourceFileLocationDB for the client class implemented against this.

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
protected static String ADD_OPERATION
           
protected static String END_ARGUMENT
           
protected static String GETMARK_OPERATION
           
protected static String GETRANGE_OPERATION
           
protected static String LOOKUP_OPERATION
           
protected static String NAME_ARGUMENT
           
protected static String NO_LOCATION_PREFIX
           
protected static String OPERATION_ARGUMENT
           
protected static String REMOVE_OPERATION
           
protected static String START_ARGUMENT
           
protected static String URL_ARGUMENT
           
 
Constructor Summary
ResourceFileLocationDBServlet()
           
 
Method Summary
 ResourceFileLocationDB getLocationDB()
           
 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 setLocationDB(ResourceFileLocationDB locationDB)
           
 
Methods inherited from class org.archive.wayback.util.webapp.AbstractRequestHandler
getBeanName, getMapParam, getMapParamOrEmpty, getRequiredMapParam, getServletContext, registerPortListener, setBeanName, setServletContext, translateRequestPath, translateRequestPathQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_ARGUMENT

protected static final String OPERATION_ARGUMENT
See Also:
Constant Field Values

NAME_ARGUMENT

protected static final String NAME_ARGUMENT
See Also:
Constant Field Values

URL_ARGUMENT

protected static final String URL_ARGUMENT
See Also:
Constant Field Values

START_ARGUMENT

protected static final String START_ARGUMENT
See Also:
Constant Field Values

END_ARGUMENT

protected static final String END_ARGUMENT
See Also:
Constant Field Values

LOOKUP_OPERATION

protected static final String LOOKUP_OPERATION
See Also:
Constant Field Values

GETMARK_OPERATION

protected static final String GETMARK_OPERATION
See Also:
Constant Field Values

GETRANGE_OPERATION

protected static final String GETRANGE_OPERATION
See Also:
Constant Field Values

ADD_OPERATION

protected static final String ADD_OPERATION
See Also:
Constant Field Values

REMOVE_OPERATION

protected static final String REMOVE_OPERATION
See Also:
Constant Field Values

NO_LOCATION_PREFIX

protected static final String NO_LOCATION_PREFIX
See Also:
Constant Field Values
Constructor Detail

ResourceFileLocationDBServlet

public ResourceFileLocationDBServlet()
Method Detail

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 HttpServletRequest
httpResponse - 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


Copyright © 2005-2011 Internet Archive. All Rights Reserved.