public class WaybackRequest extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REQUEST_AJAX_REQUEST
Request: Ajax request -- don't insert extra headers and footers
|
static String |
REQUEST_ANCHOR_DATE
Replay-Only: indicates the date to tend towards when computing closest
matches within time.
|
static String |
REQUEST_ANCHOR_WINDOW
Replay-Only: String representation of number of seconds.
|
static String |
REQUEST_AUTH_TYPE
Authorization Type: "BASIC", "SSL", or null if none.
|
static String |
REQUEST_AUTHORIZATION
Exact value from HTTP request for header "Authorization"
|
static String |
REQUEST_CAPTURE_QUERY
REQUEST_TYPE option indicating a query against the ResourceIndex for
captures of URLs matching the REQUEST_URL
|
static String |
REQUEST_CHARSET_MODE
Request: Charset detection mode
|
static String |
REQUEST_CSS_CONTEXT
Request: CSS context requested
|
static String |
REQUEST_DATE
GUARANTEED PRESENT for Replay requests only.
|
static String |
REQUEST_END_DATE
GUARANTEED PRESENT: omit results after this 14-digit String timestamp.
|
static String |
REQUEST_EXACT_DATE
GUARANTEED PRESENT for Replay requests only, no meaning for Query
requests.
|
static String |
REQUEST_EXACT_HOST_ONLY
Indicates user only wants results that exactly match the hostname within
REQUEST_URL -- no canonicalization.
|
static String |
REQUEST_EXACT_SCHEME_ONLY
Indicates user only wants results that were captured using the same
scheme as that specified in REQUEST_URL.
|
static String |
REQUEST_FRAME_WRAPPER_CONTEXT
Request: Content should be wrapped in a frame
|
static String |
REQUEST_IDENTITY_CONTEXT
Request: Identity context requested (totally transparent)
|
static String |
REQUEST_IFRAME_WRAPPER_CONTEXT
Request: Display context for embedded metadata in an IFrame
|
static String |
REQUEST_IMAGE_CONTEXT
Request: IMG context requested
|
static String |
REQUEST_IS_LIVE_WEB
Indicates user requested content from proxied from the live web.
|
static String |
REQUEST_JS_CONTEXT
Request: JS context requested
|
static String |
REQUEST_LATEST_BEST_REPLAY
indicates request for latest 'best' capture
This can be used to provide 'best' latest replay, skipping error captures, redirects
|
static String |
REQUEST_LOCALE_LANG
User Locale name: Best Guess at users requested locale.
|
static String |
REQUEST_MEMENTO_ACCEPT_DATETIME
Request: Memento Accept-Datetime used -- don't add extra redirects
|
static String |
REQUEST_MEMENTO_TIMEGATE
Request: Memento Timegate Request
|
static String |
REQUEST_MEMENTO_TIMEMAP
Request: Memento Timemap Request
|
static String |
REQUEST_META_MODE
Request: replay actual document or metadata for document: "yes" means
replay metadata only, not the actual document: (TimeLine mode)
|
static String |
REQUEST_OBJECT_EMBED_CONTEXT
Request: OBJECT or EMBED context requested
|
static String |
REQUEST_REFERER_URL
incoming requests HTTP "Referer:" header, or null
|
static String |
REQUEST_REMOTE_ADDRESS
Remote Address that connected to this webapp to create the request
string IP address: "127.0.0.1"
|
static String |
REQUEST_REMOTE_USER
Remote User or null if the request did not contain auth info.
|
static String |
REQUEST_REPLAY_QUERY
REQUEST_TYPE option indicating a request for Replay of the Resource
matching REQUEST_URL closest in time to REQUEST_DATE
|
static String |
REQUEST_RESOLUTION
resolution of results to be displayed: (TimeLine mode)
|
static String |
REQUEST_RESOLUTION_AUTO
auto resolution (TimeLine mode)
|
static String |
REQUEST_RESOLUTION_DAYS
day resolution (TimeLine mode)
|
static String |
REQUEST_RESOLUTION_HOURS
hour resolution (TimeLine mode)
|
static String |
REQUEST_RESOLUTION_MONTHS
month resolution (TimeLine mode)
|
static String |
REQUEST_RESOLUTION_TWO_MONTHS
two-month resolution (TimeLine mode)
|
static String |
REQUEST_RESOLUTION_YEARS
year resolution (TimeLine mode)
|
static String |
REQUEST_START_DATE
GUARANTEED PRESENT: omit results before this 14-digit String timestamp.
|
static String |
REQUEST_TIMESTAMP_SEARCH_KEY
Request: Use timestamp as part of the search key
|
static String |
REQUEST_TYPE
specifies the TYPE of the this particular request.
|
static String |
REQUEST_URL
GUARANTEED PRESENT: Original(RAW) URL or URL prefix requested, before any
cleanup/fixing
|
static String |
REQUEST_URL_QUERY
REQUEST_TYPE option indicating a query against the ResourceIndex for
summaries of URLs prefixed with the REQUEST_URL
|
static String |
REQUEST_WAYBACK_CONTEXT
the string (webapp) context that received this request
|
static String |
REQUEST_WAYBACK_HOSTNAME
incoming requests HTTP "Host:" header, or null
|
static String |
REQUEST_WAYBACK_PORT
the port the remote user connected to for this request
|
static String |
REQUEST_XML_DATA
Request: xml data requested
|
static String |
REQUEST_YES
indicates positive value for any request boolean flag.
|
Constructor and Description |
---|
WaybackRequest() |
Modifier and Type | Method and Description |
---|---|
void |
addResultFilter(ObjectFilter<CaptureSearchResult> resultFilter) |
WaybackRequest |
clone() |
boolean |
containsKey(String key)
Deprecated.
|
static WaybackRequest |
createCaptureQueryRequet(String url,
String replay,
String start,
String end)
create WaybackRequest for Capture-Query request.
|
static WaybackRequest |
createReplayRequest(String url,
String replay,
String start,
String end)
create WaybackRequet for Replay request.
|
static WaybackRequest |
createUrlQueryRequest(String url,
String start,
String end)
create WaybackRequet for URL-Query request.
|
void |
extractHttpRequestInfo(javax.servlet.http.HttpServletRequest httpRequest)
extract REFERER, remote IP and authorization information from the
HttpServletRequest
|
String |
get(String key) |
AccessPoint |
getAccessPoint() |
Date |
getAnchorDate() |
String |
getAnchorTimestamp() |
long |
getAnchorWindow() |
String |
getAuthType() |
int |
getCharsetMode() |
int |
getCollapseTime()
collapseTime parameter for CDXServer . |
String |
getContextPrefix()
Deprecated.
use AccessPoint.getReplayPrefix or getQueryPrefix
|
Date |
getEndDate() |
String |
getEndTimestamp() |
ExclusionFilter |
getExclusionFilter() |
String |
getForcedContentType() |
StringFormatter |
getFormatter()
Deprecated.
1.8.1 use
UIResults.getFormatter() . |
Locale |
getLocale()
return locale for this request.
|
String |
getLocaleLanguage() |
String |
getMementoTimemapFormat() |
int |
getPageNum() |
String |
getQueryArguments() |
String |
getQueryArguments(int pageNum) |
String |
getRefererUrl() |
String |
getRemoteIPAddress() |
String |
getRemoteUser() |
Date |
getReplayDate() |
String |
getReplayTimestamp() |
String |
getRequestUrl() |
int |
getResultsPerPage() |
String |
getServerPrefix()
Deprecated.
use AccessPoint.get*Prefix
|
Date |
getStartDate() |
String |
getStartTimestamp() |
String |
getTimelineResolution() |
String |
getWaybackContext() |
String |
getWaybackHostname() |
int |
getWaybackPort() |
boolean |
hasMementoAcceptDatetime() |
boolean |
isAjaxRequest() |
boolean |
isAnyEmbeddedContext() |
boolean |
isBestLatestReplayRequest() |
boolean |
isCaptureQueryRequest() |
boolean |
isCSSContext() |
boolean |
isExactHost() |
boolean |
isExactScheme() |
boolean |
isFrameWrapperContext() |
boolean |
isIdentityContext() |
boolean |
isIFrameWrapperContext() |
boolean |
isIMGContext() |
boolean |
isJSContext() |
boolean |
isLiveWebEmbedRequest() |
boolean |
isLiveWebRequest() |
boolean |
isMementoEnabled()
checks if Memento response is enabled in the
AccessPoint
for this request. |
boolean |
isMementoTimegate() |
boolean |
isMementoTimemapRequest() |
boolean |
isMetaMode() |
boolean |
isObjectEmbedContext() |
boolean |
isReplayRequest() |
boolean |
isTimestampSearchKey() |
boolean |
isUrlQueryRequest() |
boolean |
isXMLMode() |
Set<String> |
keySet()
Deprecated.
|
void |
put(String key,
String value) |
void |
remove(String key) |
void |
setAccessPoint(AccessPoint accessPoint) |
void |
setAjaxRequest(boolean isAjaxRequest) |
void |
setAnchorDate(Date date) |
void |
setAnchorTimestamp(String timestamp) |
void |
setAnchorWindow(long seconds) |
void |
setBestLatestReplayRequest() |
void |
setCaptureQueryRequest()
marks this request as a Capture Query request
|
void |
setCharsetMode(int mode) |
void |
setCollapseTime(int collapseTime)
collapseTime parameter for CDXServer . |
void |
setContextPrefix(String prefix)
Deprecated.
use getAccessPoint.setStaticPrefix() or
getAccessPoint.setReplayPrefix()
|
void |
setCSSContext(boolean isCSSContext) |
void |
setEndDate(Date date) |
void |
setEndTimestamp(String timestamp) |
void |
setExactHost(boolean isExactHost) |
void |
setExactScheme(boolean isExactScheme) |
void |
setExclusionFilter(ExclusionFilter exclusionFilter) |
void |
setForcedContentType(String contentType)
set content type forced by context flag (ex.
|
void |
setFrameWrapperContext(boolean isFrameWrapperContext) |
void |
setIdentityContext(boolean isIdentityContext) |
void |
setIFrameWrapperContext(boolean isIFrameWrapperContext) |
void |
setIMGContext(boolean isIMGContext) |
void |
setJSContext(boolean isJSContext) |
void |
setLiveWebEmbedRequest(boolean isLiveWebEmbedRequest) |
void |
setLiveWebRequest(boolean isLiveWebRequest) |
void |
setLocale(Locale locale)
Set the Locale for the request, which impacts UI Strings
2014-05-06 no longer initializes
StringFormatter . |
void |
setMementoAcceptDatetime(boolean acceptDatetime) |
void |
setMementoTimegate() |
void |
setMementoTimemapFormat(String format) |
void |
setMetaMode(boolean isMetaMode) |
void |
setObjectEmbedContext(boolean isObjectEmbedContext) |
void |
setPageNum(int pageNum) |
void |
setReplayDate(Date date) |
void |
setReplayRequest()
marks this request as a Replay request
|
void |
setReplayTimestamp(String timestamp) |
void |
setRequestUrl(String urlStr)
Set the request URL.
|
void |
setResultFilters(ObjectFilterChain<CaptureSearchResult> resultFilters) |
void |
setResultsPerPage(int resultsPerPage) |
void |
setServerPrefix(String prefix)
Deprecated.
use AccessPoint.set*Prefix
|
void |
setStartDate(Date date) |
void |
setStartTimestamp(String timestamp) |
void |
setTimelineAutoResolution() |
void |
setTimelineDayResolution() |
void |
setTimelineHourResolution() |
void |
setTimelineMonthResolution() |
void |
setTimelineTwoMonthResolution() |
void |
setTimelineYearResolution() |
void |
setTimestampSearchKey(boolean timestampSearchKey)
Add timestamp as well as url key to optimize loading for only a certain time range
However, may not find all revisit records
|
void |
setUrlQueryRequest()
marks this request as an Url Query request
|
void |
setXMLMode(boolean isXMLMode) |
public static final String REQUEST_TYPE
public static final String REQUEST_REPLAY_QUERY
public static final String REQUEST_CAPTURE_QUERY
public static final String REQUEST_URL_QUERY
public static final String REQUEST_URL
public static final String REQUEST_END_DATE
public static final String REQUEST_START_DATE
public static final String REQUEST_DATE
public static final String REQUEST_EXACT_DATE
public static final String REQUEST_EXACT_HOST_ONLY
public static final String REQUEST_EXACT_SCHEME_ONLY
public static final String REQUEST_IS_LIVE_WEB
public static final String REQUEST_YES
public static final String REQUEST_LATEST_BEST_REPLAY
public static final String REQUEST_ANCHOR_DATE
public static final String REQUEST_ANCHOR_WINDOW
public static final String REQUEST_META_MODE
public static final String REQUEST_XML_DATA
public static final String REQUEST_CSS_CONTEXT
public static final String REQUEST_JS_CONTEXT
public static final String REQUEST_IMAGE_CONTEXT
public static final String REQUEST_OBJECT_EMBED_CONTEXT
public static final String REQUEST_IDENTITY_CONTEXT
public static final String REQUEST_FRAME_WRAPPER_CONTEXT
public static final String REQUEST_IFRAME_WRAPPER_CONTEXT
public static final String REQUEST_AJAX_REQUEST
public static final String REQUEST_MEMENTO_ACCEPT_DATETIME
public static final String REQUEST_MEMENTO_TIMEMAP
public static final String REQUEST_MEMENTO_TIMEGATE
public static final String REQUEST_CHARSET_MODE
public static final String REQUEST_TIMESTAMP_SEARCH_KEY
public static final String REQUEST_WAYBACK_CONTEXT
public static final String REQUEST_WAYBACK_PORT
public static final String REQUEST_WAYBACK_HOSTNAME
public static final String REQUEST_REFERER_URL
public static final String REQUEST_REMOTE_ADDRESS
public static final String REQUEST_REMOTE_USER
public static final String REQUEST_AUTHORIZATION
public static final String REQUEST_LOCALE_LANG
public static final String REQUEST_AUTH_TYPE
public static final String REQUEST_RESOLUTION
public static final String REQUEST_RESOLUTION_AUTO
public static final String REQUEST_RESOLUTION_YEARS
public static final String REQUEST_RESOLUTION_TWO_MONTHS
public static final String REQUEST_RESOLUTION_MONTHS
public static final String REQUEST_RESOLUTION_DAYS
public static final String REQUEST_RESOLUTION_HOURS
public static WaybackRequest createUrlQueryRequest(String url, String start, String end)
url
- target URLstart
- start timestamp (14-digit)end
- end timestamp (14-digit)public static WaybackRequest createCaptureQueryRequet(String url, String replay, String start, String end)
url
- target URLreplay
- highlight datestart
- start timestamp (14-digit)end
- end timestamp (14-digit)public static WaybackRequest createReplayRequest(String url, String replay, String start, String end)
url
- target URLreplay
- requested datestart
- start timestamp (14-digit)end
- end timestamp (14-digit)public int getResultsPerPage()
public void setResultsPerPage(int resultsPerPage)
resultsPerPage
- The resultsPerPage to set.public int getPageNum()
public void setPageNum(int pageNum)
pageNum
- The pageNum to set.public void setContextPrefix(String prefix)
prefix
- public String getContextPrefix()
public void setServerPrefix(String prefix)
prefix
- public String getServerPrefix()
public AccessPoint getAccessPoint()
public void setAccessPoint(AccessPoint accessPoint)
accessPoint
- the accessPoint to setpublic ExclusionFilter getExclusionFilter()
public void setExclusionFilter(ExclusionFilter exclusionFilter)
public void setResultFilters(ObjectFilterChain<CaptureSearchResult> resultFilters)
public void addResultFilter(ObjectFilter<CaptureSearchResult> resultFilter)
public StringFormatter getFormatter()
UIResults.getFormatter()
.public Locale getLocale()
Locale
public String get(String key)
key
- public void remove(String key)
public boolean containsKey(String key)
key
- public boolean isReplayRequest()
public void setReplayRequest()
public boolean isCaptureQueryRequest()
public void setCaptureQueryRequest()
public boolean isUrlQueryRequest()
public void setUrlQueryRequest()
public String getRequestUrl()
public void setRequestUrl(String urlStr)
urlStr
- Request URL.public String getEndTimestamp()
public Date getEndDate()
public void setEndDate(Date date)
public void setEndTimestamp(String timestamp)
public String getStartTimestamp()
public Date getStartDate()
public void setStartDate(Date date)
public void setStartTimestamp(String timestamp)
public String getReplayTimestamp()
public Date getReplayDate()
public void setReplayDate(Date date)
public void setReplayTimestamp(String timestamp)
public void setExactHost(boolean isExactHost)
public boolean isExactHost()
public void setExactScheme(boolean isExactScheme)
public boolean isExactScheme()
public void setLiveWebRequest(boolean isLiveWebRequest)
public void setLiveWebEmbedRequest(boolean isLiveWebEmbedRequest)
public boolean isLiveWebRequest()
public boolean isLiveWebEmbedRequest()
public String getAnchorTimestamp()
public Date getAnchorDate()
public void setAnchorDate(Date date)
public void setAnchorTimestamp(String timestamp)
public long getAnchorWindow()
public void setAnchorWindow(long seconds)
public void setMetaMode(boolean isMetaMode)
public boolean isMetaMode()
public void setXMLMode(boolean isXMLMode)
public boolean isXMLMode()
public void setJSContext(boolean isJSContext)
public boolean isJSContext()
public void setCSSContext(boolean isCSSContext)
public boolean isCSSContext()
public void setIMGContext(boolean isIMGContext)
public boolean isIMGContext()
public void setObjectEmbedContext(boolean isObjectEmbedContext)
public boolean isObjectEmbedContext()
public void setIdentityContext(boolean isIdentityContext)
public boolean isIdentityContext()
public void setFrameWrapperContext(boolean isFrameWrapperContext)
public boolean isFrameWrapperContext()
public void setIFrameWrapperContext(boolean isIFrameWrapperContext)
public boolean isIFrameWrapperContext()
public void setForcedContentType(String contentType)
cs_
).
If this is set, it overrides contentType from index/resource.contentType
- content type (ex. text/css
) or null
.MimeTypeSelector
public String getForcedContentType()
public boolean isAnyEmbeddedContext()
public void setAjaxRequest(boolean isAjaxRequest)
public boolean isAjaxRequest()
public boolean isMementoEnabled()
AccessPoint
for this request.
Better than accessing AccessPoint.isEnableMemento()
through
getAccessPoint()
.
true
if enabled.AccessPoint.isEnableMemento()
public void setMementoTimemapFormat(String format)
public String getMementoTimemapFormat()
public boolean isMementoTimemapRequest()
public void setMementoAcceptDatetime(boolean acceptDatetime)
public boolean hasMementoAcceptDatetime()
public void setMementoTimegate()
public boolean isMementoTimegate()
public void setCharsetMode(int mode)
public int getCharsetMode()
public String getWaybackContext()
public int getWaybackPort()
public String getWaybackHostname()
public String getRefererUrl()
public String getRemoteIPAddress()
public String getRemoteUser()
public String getLocaleLanguage()
public String getAuthType()
public String getTimelineResolution()
public void setTimelineAutoResolution()
public void setTimelineYearResolution()
public void setTimelineTwoMonthResolution()
public void setTimelineMonthResolution()
public void setTimelineDayResolution()
public void setTimelineHourResolution()
public void setTimestampSearchKey(boolean timestampSearchKey)
public boolean isTimestampSearchKey()
public void setLocale(Locale locale)
2014-05-06 no longer initializes StringFormatter
.
l
- UIResults
public void extractHttpRequestInfo(javax.servlet.http.HttpServletRequest httpRequest)
httpRequest
- BadQueryException
public String getQueryArguments()
public String getQueryArguments(int pageNum)
pageNum
- public WaybackRequest clone()
public Set<String> keySet()
public boolean isBestLatestReplayRequest()
public void setBestLatestReplayRequest()
public int getCollapseTime()
collapseTime
parameter for CDXServer
.-1
if parameter is unspecified.public void setCollapseTime(int collapseTime)
collapseTime
parameter for CDXServer
.collapseTime
- integer, negative value for unspecified.Copyright © 2005–2015 IIPC. All rights reserved.