org.archive.wayback.proxy
Class ProxyRequestParser

java.lang.Object
  extended by org.archive.wayback.requestparser.BaseRequestParser
      extended by org.archive.wayback.requestparser.CompositeRequestParser
          extended by org.archive.wayback.proxy.ProxyRequestParser
All Implemented Interfaces:
RequestParser

public class ProxyRequestParser
extends CompositeRequestParser

Version:
$Date$, $Revision$
Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.requestparser.BaseRequestParser
DEFAULT_MAX_RECORDS, earliestTimestamp, latestTimestamp, maxRecords, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
 
Constructor Summary
ProxyRequestParser()
           
 
Method Summary
 java.util.List<java.lang.String> getLocalhostNames()
           
protected  RequestParser[] getRequestParsers()
           
 WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint wbContext)
          attempt to transform an incoming HttpServletRequest into a WaybackRequest object.
 void setLocalhostNames(java.util.List<java.lang.String> localhostNames)
           
 
Methods inherited from class org.archive.wayback.requestparser.CompositeRequestParser
init
 
Methods inherited from class org.archive.wayback.requestparser.BaseRequestParser
getEarliestTimestamp, getLatestTimestamp, getMapParam, getMapParamOrEmpty, getMaxRecords, getRequiredMapParam, setEarliestTimestamp, setLatestTimestamp, setMaxRecords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyRequestParser

public ProxyRequestParser()
Method Detail

getRequestParsers

protected RequestParser[] getRequestParsers()
Overrides:
getRequestParsers in class CompositeRequestParser

getLocalhostNames

public java.util.List<java.lang.String> getLocalhostNames()

setLocalhostNames

public void setLocalhostNames(java.util.List<java.lang.String> localhostNames)

parse

public WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest,
                            AccessPoint wbContext)
                     throws BadQueryException
Description copied from interface: RequestParser
attempt to transform an incoming HttpServletRequest into a WaybackRequest object. returns null if there is missing information.

Specified by:
parse in interface RequestParser
Overrides:
parse in class CompositeRequestParser
Returns:
populated WaybackRequest object if successful, null otherwise.
Throws:
BadQueryException


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