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.
ID
GENERIC_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, hasHeader
getDetails, getMessage, getMessageKey, getTitle, getTitleKey, isLiveWebAvailable, setLiveWebAvailable, setupResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BetterReplayRequestException(String targetURI, String timestamp, CaptureSearchResults captures)
targetURI
- target URI, typically capture's originalUrl
timestamp
- timestamp, typically capture's cpatureTimestamp
results
- 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 BetterRequestException
Copyright © 2005–2015 IIPC. All rights reserved.