public class ArchivalUrlRequestParser extends CompositeRequestParser
Typically, this class is set to AccessPoint to configure ArchivalUrl access point.
It doesn't make much sense to split Archival-Url request parsing into such fine-grained classes. It just make code less efficient, more difficult to maintain. It is hard to think of the situation where these sub-parsers are customized separately, and order is very important. It also sounds weird to include TimeMapRequestParser in ArchivalUrlRequestParser, even if TimeMapRequestParser works only in Archival-Url space. Refactor these classes into one ArchivalUrl replay/query request parser, and rename this class. Probably this class may be bundled with other ArchivalUrl-related classes for better abstraction.
Modifier and Type | Field and Description |
---|---|
static String |
CHARSET_MODE
Charset detection strategy context - should be followed by an integer
indicating which strategy to use
|
static String |
CSS_CONTEXT
text/css context
|
static String |
FLAG_DELIM
delimiter character for datespec flags
|
static String |
FRAME_WRAPPED_CONTEXT
frame-wrapper context
|
static String |
IDENTITY_CONTEXT
raw/identity context
|
static String |
IFRAME_WRAPPED_CONTEXT
iframe-wrapped context
|
static String |
IMG_CONTEXT
image/* context
|
static String |
JS_CONTEXT
text/javascript context
|
static String |
OBJECT_EMBED_WRAPPED_CONTEXT
object/embed wrapped context
|
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
Constructor and Description |
---|
ArchivalUrlRequestParser() |
Modifier and Type | Method and Description |
---|---|
protected RequestParser[] |
getRequestParsers() |
init, parse
getEarliestTimestamp, getLatestTimestamp, getMaxRecords, setEarliestTimestamp, setLatestTimestamp, setMaxRecords
public static final String FLAG_DELIM
public static final String JS_CONTEXT
public static final String CSS_CONTEXT
public static final String IMG_CONTEXT
public static final String IDENTITY_CONTEXT
public static final String FRAME_WRAPPED_CONTEXT
public static final String IFRAME_WRAPPED_CONTEXT
public static final String OBJECT_EMBED_WRAPPED_CONTEXT
public static final String CHARSET_MODE
protected RequestParser[] getRequestParsers()
getRequestParsers
in class CompositeRequestParser
Copyright © 2005–2015 IIPC. All rights reserved.