public final class GSPResponseWriter extends GrailsRoutablePrintWriter implements EncodedAppenderFactory, EncoderAware
NOTE: Based on work done by on the GSP standalone project (https://gsp.dev.java.net/) A buffered writer that won't commit the response until the buffer has reached the high water mark, or until flush() or close() is called. Performance optimizations by Lari Hotari, 13.03.2009 Calculating the Content-Length has been disabled by default since Jetty ignores it (uses Chunked mode anyways). Content-Length mode can be enabled with -DGSPResponseWriter.enableContentLength=true system property.
Modifiers | Name | Description |
---|---|---|
static boolean |
AUTOFLUSH_ENABLED |
|
static boolean |
BUFFERING_ENABLED |
|
static boolean |
CONTENT_LENGTH_COUNTING_ENABLED |
|
protected static org.apache.commons.logging.Log |
logger |
Fields inherited from class | Fields |
---|---|
class GrailsPrintWriterAdapter |
target |
Type Params | Return Type | Name and description |
---|---|---|
|
public Writer |
activateDestination() |
|
public Writer |
activateDestination() |
|
public void |
close() Close the stream. |
|
public EncodedAppender |
getEncodedAppender() |
|
public Encoder |
getEncoder() |
|
public static GSPResponseWriter |
getInstance(ServletResponse response) |
|
public Writer |
getWriter() |
|
public Writer |
getWriter() |
|
public Writer |
getWriter() |
|
public StreamCharBuffer.LazyInitializingWriter[] |
initializeMultiple(StreamCharBuffer buffer, boolean autoFlush) |
|
public boolean |
isAllowUnwrappingOut() |
|
public Writer |
unwrap() |
Close the stream.