public class ServletPrinter extends HttpPrinter
ostream, sawContentType
attributeType, base, inAttribute, skipping
Constructor and Description |
---|
ServletPrinter(HttpRequestContext hctx,
int bufSize) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String label,
java.lang.String value) |
void |
printHeaders() |
boolean |
reset(boolean headersAlso)
Try to reset (delete) any response generated so far.
|
beforeNode, beginData, endAttribute, endDocument, endElement, make, printHeader, startAttribute, startDocument, startElement, write, write, writeObject
append, append, append, beforeContent, beginEntity, endEntity, ignoring, write, write, writeBoolean, writeCDATA, writeComment, writeDouble, writeFloat, writeInt, writeLong, writeProcessingInstruction
public ServletPrinter(HttpRequestContext hctx, int bufSize) throws java.io.IOException
java.io.IOException
public void addHeader(java.lang.String label, java.lang.String value)
addHeader
in class HttpPrinter
public void printHeaders()
printHeaders
in class HttpPrinter
public boolean reset(boolean headersAlso)
HttpPrinter
reset
in class HttpPrinter
headersAlso
- if response headers should also be reset.