public 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 watermark, 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 |
LOG |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
close() Close the stream. |
|
public EncodedAppender |
getEncodedAppender() |
|
public Encoder |
getEncoder() |
|
public static GSPResponseWriter |
getInstance(ServletResponse response) |
|
public java.io.Writer |
getWriter() |
|
public LazyInitializingWriter[] |
initializeMultiple(StreamCharBuffer buffer, boolean autoFlush) |
|
public boolean |
isAllowUnwrappingOut() |
|
public java.io.Writer |
unwrap() |
Methods inherited from class | Name |
---|---|
class GrailsRoutablePrintWriter |
activateDestination, append, append, append, blockFlushAndClose, checkError, close, flush, isAllowUnwrappingOut, isBlockClose, isBlockFlush, isDestinationActivated, leftShift, leftShift, leftShift, newInstance, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setBlockClose, setBlockFlush, setDestinationActivated, unBlockFlushAndClose, unwrap, updateDestination, write, write, write, write, write |
Close the stream.