public class GSPResponseWriter extends org.grails.buffer.GrailsRoutablePrintWriter implements org.grails.encoder.EncoderAware, org.grails.encoder.EncodedAppenderFactory
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 org.grails.encoder.EncodedAppender |
getEncodedAppender() |
|
public org.grails.encoder.Encoder |
getEncoder() |
|
public static GSPResponseWriter |
getInstance(jakarta.servlet.ServletResponse response) |
|
public java.io.Writer |
getWriter() |
|
public org.grails.buffer.StreamCharBuffer$LazyInitializingWriter[] |
initializeMultiple(org.grails.buffer.StreamCharBuffer buffer, boolean autoFlush) |
|
public boolean |
isAllowUnwrappingOut() |
|
public java.io.Writer |
unwrap() |
Methods inherited from class | Name |
---|---|
class org.grails.buffer.GrailsRoutablePrintWriter |
org.grails.buffer.GrailsRoutablePrintWriter#isAllowUnwrappingOut(), org.grails.buffer.GrailsRoutablePrintWriter#isDestinationActivated(), org.grails.buffer.GrailsRoutablePrintWriter#isBlockClose(), org.grails.buffer.GrailsRoutablePrintWriter#isBlockFlush(), org.grails.buffer.GrailsRoutablePrintWriter#setBlockFlush(boolean), org.grails.buffer.GrailsRoutablePrintWriter#setBlockClose(boolean), org.grails.buffer.GrailsRoutablePrintWriter#unBlockFlushAndClose(), org.grails.buffer.GrailsRoutablePrintWriter#blockFlushAndClose(), org.grails.buffer.GrailsRoutablePrintWriter#updateDestination(org.grails.buffer.GrailsRoutablePrintWriter$DestinationFactory), org.grails.buffer.GrailsRoutablePrintWriter#setDestinationActivated(boolean), org.grails.buffer.GrailsRoutablePrintWriter#println([C), org.grails.buffer.GrailsRoutablePrintWriter#println(float), org.grails.buffer.GrailsRoutablePrintWriter#println(long), org.grails.buffer.GrailsRoutablePrintWriter#println(double), org.grails.buffer.GrailsRoutablePrintWriter#println(java.lang.Object), org.grails.buffer.GrailsRoutablePrintWriter#println(java.lang.String), org.grails.buffer.GrailsRoutablePrintWriter#println(char), org.grails.buffer.GrailsRoutablePrintWriter#println(int), org.grails.buffer.GrailsRoutablePrintWriter#println(), org.grails.buffer.GrailsRoutablePrintWriter#println(boolean), org.grails.buffer.GrailsRoutablePrintWriter#append(java.lang.CharSequence), org.grails.buffer.GrailsRoutablePrintWriter#append(java.lang.CharSequence), org.grails.buffer.GrailsRoutablePrintWriter#append(java.lang.CharSequence), org.grails.buffer.GrailsRoutablePrintWriter#append(java.lang.CharSequence, int, int), org.grails.buffer.GrailsRoutablePrintWriter#append(java.lang.CharSequence, int, int), org.grails.buffer.GrailsRoutablePrintWriter#append(java.lang.CharSequence, int, int), org.grails.buffer.GrailsRoutablePrintWriter#append(char), org.grails.buffer.GrailsRoutablePrintWriter#append(char), org.grails.buffer.GrailsRoutablePrintWriter#append(char), org.grails.buffer.GrailsRoutablePrintWriter#flush(), org.grails.buffer.GrailsRoutablePrintWriter#newInstance(org.grails.buffer.GrailsRoutablePrintWriter$DestinationFactory), org.grails.buffer.GrailsRoutablePrintWriter#write(java.lang.String), org.grails.buffer.GrailsRoutablePrintWriter#write([C), org.grails.buffer.GrailsRoutablePrintWriter#write(java.lang.String, int, int), org.grails.buffer.GrailsRoutablePrintWriter#write(int), org.grails.buffer.GrailsRoutablePrintWriter#write([C, int, int), org.grails.buffer.GrailsRoutablePrintWriter#print(double), org.grails.buffer.GrailsRoutablePrintWriter#print([C), org.grails.buffer.GrailsRoutablePrintWriter#print(java.lang.String), org.grails.buffer.GrailsRoutablePrintWriter#print(long), org.grails.buffer.GrailsRoutablePrintWriter#print(float), org.grails.buffer.GrailsRoutablePrintWriter#print(int), org.grails.buffer.GrailsRoutablePrintWriter#print(char), org.grails.buffer.GrailsRoutablePrintWriter#print(java.lang.Object), org.grails.buffer.GrailsRoutablePrintWriter#print(boolean), org.grails.buffer.GrailsRoutablePrintWriter#close(), org.grails.buffer.GrailsRoutablePrintWriter#unwrap(), org.grails.buffer.GrailsRoutablePrintWriter#checkError(), org.grails.buffer.GrailsRoutablePrintWriter#leftShift(java.lang.Object), org.grails.buffer.GrailsRoutablePrintWriter#leftShift(org.grails.buffer.StreamCharBuffer), org.grails.buffer.GrailsRoutablePrintWriter#leftShift(groovy.lang.Writable), org.grails.buffer.GrailsRoutablePrintWriter#isUsed(), org.grails.buffer.GrailsRoutablePrintWriter#markUsed(), org.grails.buffer.GrailsRoutablePrintWriter#getOut(), org.grails.buffer.GrailsRoutablePrintWriter#resetUsed(), org.grails.buffer.GrailsRoutablePrintWriter#setUsed(boolean), org.grails.buffer.GrailsRoutablePrintWriter#println(org.grails.buffer.StreamCharBuffer), org.grails.buffer.GrailsRoutablePrintWriter#append(java.lang.Object), org.grails.buffer.GrailsRoutablePrintWriter#append(org.grails.buffer.StreamCharBuffer), org.grails.buffer.GrailsRoutablePrintWriter#newInstance(java.io.Writer), org.grails.buffer.GrailsRoutablePrintWriter#write(org.grails.buffer.StreamCharBuffer), org.grails.buffer.GrailsRoutablePrintWriter#write(groovy.lang.Writable), org.grails.buffer.GrailsRoutablePrintWriter#print(groovy.lang.Writable), org.grails.buffer.GrailsRoutablePrintWriter#print(org.grails.buffer.StreamCharBuffer), org.grails.buffer.GrailsRoutablePrintWriter#getTarget(), org.grails.buffer.GrailsRoutablePrintWriter#setTarget(java.io.Writer), org.grails.buffer.GrailsRoutablePrintWriter#setError(), org.grails.buffer.GrailsRoutablePrintWriter#plus(java.lang.Object), org.grails.buffer.GrailsRoutablePrintWriter#format(java.lang.String, [Ljava.lang.Object;), org.grails.buffer.GrailsRoutablePrintWriter#format(java.util.Locale, java.lang.String, [Ljava.lang.Object;), org.grails.buffer.GrailsRoutablePrintWriter#printf(java.lang.String, [Ljava.lang.Object;), org.grails.buffer.GrailsRoutablePrintWriter#printf(java.util.Locale, java.lang.String, [Ljava.lang.Object;), org.grails.buffer.GrailsRoutablePrintWriter#nullWriter(), org.grails.buffer.GrailsRoutablePrintWriter#wait(long, int), org.grails.buffer.GrailsRoutablePrintWriter#wait(), org.grails.buffer.GrailsRoutablePrintWriter#wait(long), org.grails.buffer.GrailsRoutablePrintWriter#equals(java.lang.Object), org.grails.buffer.GrailsRoutablePrintWriter#toString(), org.grails.buffer.GrailsRoutablePrintWriter#hashCode(), org.grails.buffer.GrailsRoutablePrintWriter#getClass(), org.grails.buffer.GrailsRoutablePrintWriter#notify(), org.grails.buffer.GrailsRoutablePrintWriter#notifyAll() |
Close the stream.