public class BetterReplayRequestException extends BetterRequestException
BetterRequestException for instructing a redirect to
ArchivalUrl for the URL on different timestamp.
This class generates additional HTTP headers for Memento support.
IDGENERIC_ID, id, isLiveWebAvailable, KEY_MESSAGE_SUFFIX, KEY_PREFIX, KEY_TITLE_SUFFIX| Constructor and Description |
|---|
BetterReplayRequestException(CaptureSearchResult capture,
CaptureSearchResults captures)
|
BetterReplayRequestException(String targetURI,
String timestamp,
CaptureSearchResults captures)
Initializes with capture information and additional information for
generating navigation headers (Memento headers).
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateResponse(javax.servlet.http.HttpServletResponse response,
WaybackRequest wbRequest) |
addHeader, getBetterURI, getStatus, hasHeadergetDetails, getMessage, getMessageKey, getTitle, getTitleKey, isLiveWebAvailable, setLiveWebAvailable, setupResponseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BetterReplayRequestException(String targetURI, String timestamp, CaptureSearchResults captures)
targetURI - target URI, typically capture's originalUrltimestamp - timestamp, typically capture's cpatureTimestampresults - Other captures for targetURI.public BetterReplayRequestException(CaptureSearchResult capture, CaptureSearchResults captures)
capture - Capture to redirect to.captures - Other captures for targetURI.public void generateResponse(javax.servlet.http.HttpServletResponse response,
WaybackRequest wbRequest)
generateResponse in class BetterRequestExceptionCopyright © 2005–2017 IIPC. All rights reserved.