public abstract class HttpCDXWriter extends CDXWriter
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.http.HttpServletResponse |
response |
static String |
RUNTIME_ERROR_HEADER |
protected PrintWriter |
writer |
static String |
X_CLUSTER_URI |
static String |
X_MAX_LINES |
static String |
X_NUM_PAGES |
Constructor and Description |
---|
HttpCDXWriter(javax.servlet.http.HttpServletResponse response,
boolean gzip) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static PrintWriter |
getGzipWriter(javax.servlet.http.HttpServletResponse response) |
boolean |
isAborted() |
void |
printError(String msg) |
void |
printNumPages(int numPages,
boolean printInBody) |
void |
serverError(Exception io) |
void |
setContentType(String type) |
void |
setMaxLines(int maxLines,
String remoteClusterUri) |
void |
writeMiscLine(String line) |
modifyOutputFormat, trackLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
begin, end, writeLine, writeResumeKey
public static final String X_NUM_PAGES
public static final String X_MAX_LINES
public static final String X_CLUSTER_URI
public static final String RUNTIME_ERROR_HEADER
protected javax.servlet.http.HttpServletResponse response
protected PrintWriter writer
public HttpCDXWriter(javax.servlet.http.HttpServletResponse response, boolean gzip) throws IOException
IOException
public void printError(String msg)
printError
in class CDXWriter
public void serverError(Exception io)
serverError
in class CDXWriter
public void setContentType(String type)
setContentType
in class CDXWriter
public void setMaxLines(int maxLines, String remoteClusterUri)
setMaxLines
in class CDXWriter
public void writeMiscLine(String line)
writeMiscLine
in class CDXWriter
public void printNumPages(int numPages, boolean printInBody)
printNumPages
in class CDXWriter
public static PrintWriter getGzipWriter(javax.servlet.http.HttpServletResponse response) throws IOException
IOException
Copyright © 2005–2015 IIPC. All rights reserved.