org.archive.wayback.liveweb
Class ARCRecordingProxy

java.lang.Object
  extended by org.archive.wayback.util.webapp.AbstractRequestHandler
      extended by org.archive.wayback.liveweb.ARCRecordingProxy
All Implemented Interfaces:
RequestHandler, ShutdownListener, org.springframework.beans.factory.BeanNameAware

public class ARCRecordingProxy
extends AbstractRequestHandler
implements ShutdownListener

Author:
brad

Constructor Summary
ARCRecordingProxy()
           
 
Method Summary
 ARCCacheDirectory getArcCacheDir()
           
 URLtoARCCacher getCacher()
           
 long getExpiresMS()
           
 long getFakeExpiresMS()
           
 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 setArcCacheDir(ARCCacheDirectory arcCacheDir)
           
 void setCacher(URLtoARCCacher cacher)
           
 void setExpiresMS(long expiresMS)
           
 void setFakeExpiresMS(long fakeExpiresMS)
           
 void shutdown()
          Called when the ServletContext is being destroyed.
 
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
 

Constructor Detail

ARCRecordingProxy

public ARCRecordingProxy()
Method Detail

handleRequest

public boolean handleRequest(javax.servlet.http.HttpServletRequest httpRequest,
                             javax.servlet.http.HttpServletResponse httpResponse)
                      throws javax.servlet.ServletException,
                             IOException
Description copied from interface: RequestHandler
Possibly handle an incoming HttpServletRequest, much like a normal HttpServlet, but includes a return value.

Specified by:
handleRequest in interface RequestHandler
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:
javax.servlet.ServletException - for usual reasons.
IOException - for usual reasons.

getArcCacheDir

public ARCCacheDirectory getArcCacheDir()
Returns:
the arcCacheDir

setArcCacheDir

public void setArcCacheDir(ARCCacheDirectory arcCacheDir)
Parameters:
arcCacheDir - the arcCacheDir to set

getCacher

public URLtoARCCacher getCacher()
Returns:
the cacher

setCacher

public void setCacher(URLtoARCCacher cacher)
Parameters:
cacher - the cacher to set

getExpiresMS

public long getExpiresMS()
Returns:
the expiresMS

setExpiresMS

public void setExpiresMS(long expiresMS)
Parameters:
expiresMS - the expiresMS to set

getFakeExpiresMS

public long getFakeExpiresMS()
Returns:
the fakeExpiresMS

setFakeExpiresMS

public void setFakeExpiresMS(long fakeExpiresMS)
Parameters:
fakeExpiresMS - the fakeExpiresMS to set

shutdown

public void shutdown()
Description copied from interface: ShutdownListener
Called when the ServletContext is being destroyed.

Specified by:
shutdown in interface ShutdownListener


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