org.archive.wayback.requestparser
Class FormRequestParser
java.lang.Object
org.archive.wayback.requestparser.BaseRequestParser
org.archive.wayback.requestparser.WrappedRequestParser
org.archive.wayback.requestparser.FormRequestParser
- All Implemented Interfaces:
- RequestParser
- Direct Known Subclasses:
- ArchivalUrlFormRequestParser
public class FormRequestParser
- extends WrappedRequestParser
RequestParser which attempts to extract data from an HTML form, that is, from
HTTP GET request arguments
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
|
Method Summary |
WaybackRequest |
parse(javax.servlet.http.HttpServletRequest httpRequest,
AccessPoint accessPoint)
attempt to transform an incoming HttpServletRequest into a
WaybackRequest object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormRequestParser
public FormRequestParser(BaseRequestParser wrapped)
- Parameters:
wrapped - the BaseRequestParser being wrapped
parse
public WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest,
AccessPoint accessPoint)
throws BetterRequestException
- 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
- Parameters:
httpRequest - ServletHttpRequest being handledaccessPoint - AccessPoint which is attempting to parse the request
- Returns:
- populated WaybackRequest object if successful, null otherwise.
- Throws:
BetterRequestException - if the request should be redirected to
provide better user feedback (corrected URL/date in address bar)
Copyright © 2005-2011 Internet Archive. All Rights Reserved.