|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.core.WaybackRequest
public class WaybackRequest
Abstraction of all the data associated with a users request to the Wayback Machine.
| Field Summary | |
|---|---|
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_IDENTITY_CONTEXT
Request: Identity context requested (totally transparent) |
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_LOCALE_LANG
User Locale name: Best Guess at users requested locale. |
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_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_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 Summary | |
|---|---|
WaybackRequest()
|
|
| Method Summary | |
|---|---|
void |
addResultFilter(ObjectFilter<CaptureSearchResult> resultFilter)
|
WaybackRequest |
clone()
|
boolean |
containsKey(String key)
Deprecated. |
void |
fixup(javax.servlet.http.HttpServletRequest httpRequest)
attempt to fixup this WaybackRequest, mostly with respect to dates: if only "date" was specified, infer start and end dates from it. |
String |
get(String key)
|
AccessPoint |
getAccessPoint()
|
Date |
getAnchorDate()
|
String |
getAnchorTimestamp()
|
long |
getAnchorWindow()
|
String |
getAuthType()
|
int |
getCharsetMode()
|
String |
getContextPrefix()
Deprecated. use AccessPoint.setReplayPrefix or setQueryPrefix |
Date |
getEndDate()
|
String |
getEndTimestamp()
|
ExclusionFilter |
getExclusionFilter()
|
StringFormatter |
getFormatter()
|
String |
getLocaleLanguage()
|
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 |
isCaptureQueryRequest()
|
boolean |
isCSSContext()
|
boolean |
isExactHost()
|
boolean |
isExactScheme()
|
boolean |
isIdentityContext()
|
boolean |
isIMGContext()
|
boolean |
isJSContext()
|
boolean |
isLiveWebRequest()
|
boolean |
isMetaMode()
|
boolean |
isReplayRequest()
|
boolean |
isUrlQueryRequest()
|
boolean |
isXMLMode()
|
Set<String> |
keySet()
Deprecated. |
void |
put(String key,
String value)
|
void |
remove(String key)
|
void |
setAccessPoint(AccessPoint accessPoint)
|
void |
setAnchorDate(Date date)
|
void |
setAnchorTimestamp(String timestamp)
|
void |
setAnchorWindow(long seconds)
|
void |
setCaptureQueryRequest()
marks this request as a Capture Query request |
void |
setCharsetMode(int mode)
|
void |
setContextPrefix(String prefix)
Deprecated. use getAccessPoint.getStaticPrefix() or getAccessPoint.getReplayPrefix() |
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 |
setIdentityContext(boolean isIdentityContext)
|
void |
setIMGContext(boolean isIMGContext)
|
void |
setJSContext(boolean isJSContext)
|
void |
setLiveWebRequest(boolean isLiveWebRequest)
|
void |
setLocale(Locale l)
Set the Locale for the request, which impacts UI Strings |
void |
setMetaMode(boolean isMetaMode)
|
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 |
setUrlQueryRequest()
marks this request as an Url Query request |
void |
setXMLMode(boolean isXMLMode)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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_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_IDENTITY_CONTEXT
public static final String REQUEST_CHARSET_MODE
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
| Constructor Detail |
|---|
public WaybackRequest()
| Method Detail |
|---|
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()
prefix -
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()
public String get(String key)
key -
public void put(String key,
String value)
key - value - 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 boolean isLiveWebRequest()
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 setIdentityContext(boolean isIdentityContext)
public boolean isIdentityContext()
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 setLocale(Locale l)
l - public void fixup(javax.servlet.http.HttpServletRequest httpRequest)
httpRequest - public String getQueryArguments()
public String getQueryArguments(int pageNum)
pageNum -
public WaybackRequest clone()
clone in class Objectpublic Set<String> keySet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||