public class MementoLinkWriter extends HttpCDXWriter
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_LINK_FORMAT |
static Date |
ERROR_DATE |
static String |
FIRST |
static String |
FIRST_LAST |
protected String |
format |
static TimeZone |
GMT_TZ |
protected boolean |
hasStarted |
static String |
HTTP_LINK_DATE_FORMAT |
static SimpleDateFormat |
HTTP_LINK_DATE_FORMATTER |
static String |
LAST |
static String |
LINK |
static String |
MEMENTO |
static String |
ORIGINAL |
protected org.archive.format.cdx.CDXLine |
prevLine |
protected static String |
RESUME_KEY |
static String |
TIMEGATE |
protected String |
timegateUrl |
static String |
TIMEMAP |
protected String |
timemapUrl |
response, RUNTIME_ERROR_HEADER, writer, X_CLUSTER_URI, X_MAX_LINES, X_NUM_PAGES
Constructor and Description |
---|
MementoLinkWriter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CDXQuery cdxquery,
boolean gzip) |
Modifier and Type | Method and Description |
---|---|
void |
begin()
This method will be called just before looping over
the sequence of CDX lines.
|
void |
end()
Called at the end.
|
protected void |
writeHeader(org.archive.format.cdx.CDXLine firstLine) |
protected void |
writeHeaderAndFirstLine(org.archive.format.cdx.CDXLine line,
String first,
String last) |
int |
writeLine(org.archive.format.cdx.CDXLine line)
Process
line . |
void |
writeResumeKey(String resumeKey)
Write resumption key.
|
close, getGzipWriter, isAborted, printError, printNumPages, serverError, setContentType, setMaxLines, writeMiscLine
modifyOutputFormat, trackLine
protected boolean hasStarted
protected String timemapUrl
protected String timegateUrl
protected String format
protected static final String RESUME_KEY
public static final String ORIGINAL
public static final String APPLICATION_LINK_FORMAT
public static final String HTTP_LINK_DATE_FORMAT
public static final String TIMEGATE
public static final String TIMEMAP
public static final String LINK
public static final String FIRST
public static final String LAST
public static final String FIRST_LAST
public static final String MEMENTO
public static final Date ERROR_DATE
public static final SimpleDateFormat HTTP_LINK_DATE_FORMATTER
public static final TimeZone GMT_TZ
protected org.archive.format.cdx.CDXLine prevLine
public MementoLinkWriter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CDXQuery cdxquery, boolean gzip) throws IOException
IOException
public void begin()
BaseProcessor
begin()
on nested processor.protected void writeHeader(org.archive.format.cdx.CDXLine firstLine)
protected void writeHeaderAndFirstLine(org.archive.format.cdx.CDXLine line, String first, String last)
public int writeLine(org.archive.format.cdx.CDXLine line)
BaseProcessor
line
.line
- CDXLine
line
is sent to output, 0 otherwise.public void writeResumeKey(String resumeKey)
BaseProcessor
CDXWriter
should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey)
on nested processor.public void end()
BaseProcessor
end()
on nested processor.Copyright © 2005–2015 IIPC. All rights reserved.