org.archive.wayback.domainprefix
Class DomainPrefixRequestParser

java.lang.Object
  extended by org.archive.wayback.requestparser.BaseRequestParser
      extended by org.archive.wayback.domainprefix.DomainPrefixRequestParser
All Implemented Interfaces:
RequestParser

public class DomainPrefixRequestParser
extends BaseRequestParser

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
DomainPrefixRequestParser()
           
 
Method Summary
 java.lang.String getHostPort()
           
 WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint wbContext)
          attempt to transform an incoming HttpServletRequest into a WaybackRequest object.
 void setHostPort(java.lang.String hostPort)
           
 
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

DomainPrefixRequestParser

public DomainPrefixRequestParser()
Method Detail

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
Specified by:
parse in class BaseRequestParser
Returns:
populated WaybackRequest object if successful, null otherwise.
Throws:
BadQueryException

getHostPort

public java.lang.String getHostPort()
Returns:
the hostPort

setHostPort

public void setHostPort(java.lang.String hostPort)
Parameters:
hostPort - the hostPort to set


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