Package org.apache.catalina.filters
Class ExpiresFilter.XServletOutputStream
- java.lang.Object
- 
- java.io.OutputStream
- 
- javax.servlet.ServletOutputStream
- 
- org.apache.catalina.filters.ExpiresFilter.XServletOutputStream
 
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.io.Flushable,- java.lang.AutoCloseable
 - Enclosing class:
- ExpiresFilter
 
 public class ExpiresFilter.XServletOutputStream extends ServletOutputStream Wrapping extension ofServletOutputStreamto trap the "Start Write Response Body" event.
- 
- 
Constructor SummaryConstructors Constructor Description XServletOutputStream(ServletOutputStream servletOutputStream, HttpServletRequest request, ExpiresFilter.XHttpServletResponse response)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()booleanisReady()TODO SERVLET 3.1voidprint(boolean b)Writes abooleanvalue to the client, with no carriage return-line feed (CRLF) character at the end.voidprint(char c)Writes a character to the client, with no carriage return-line feed (CRLF) at the end.voidprint(double d)Writes adoublevalue to the client, with no carriage return-line feed (CRLF) at the end.voidprint(float f)Writes afloatvalue to the client, with no carriage return-line feed (CRLF) at the end.voidprint(int i)Writes an int to the client, with no carriage return-line feed (CRLF) at the end.voidprint(long l)Writes alongvalue to the client, with no carriage return-line feed (CRLF) at the end.voidprint(java.lang.String s)Writes aStringto the client, without a carriage return-line feed (CRLF) character at the end.voidprintln()Writes a carriage return-line feed (CRLF) to the client.voidprintln(boolean b)Writes abooleanvalue to the client, followed by a carriage return-line feed (CRLF).voidprintln(char c)Writes a character to the client, followed by a carriage return-line feed (CRLF).voidprintln(double d)Writes adoublevalue to the client, followed by a carriage return-line feed (CRLF).voidprintln(float f)Writes afloatvalue to the client, followed by a carriage return-line feed (CRLF).voidprintln(int i)Writes an int to the client, followed by a carriage return-line feed (CRLF) character.voidprintln(long l)Writes alongvalue to the client, followed by a carriage return-line feed (CRLF).voidprintln(java.lang.String s)Writes aStringto the client, followed by a carriage return-line feed (CRLF).voidsetWriteListener(WriteListener listener)TODO SERVLET 3.1voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)
 
- 
- 
- 
Constructor Detail- 
XServletOutputStreampublic XServletOutputStream(ServletOutputStream servletOutputStream, HttpServletRequest request, ExpiresFilter.XHttpServletResponse response) 
 
- 
 - 
Method Detail- 
closepublic void close() throws java.io.IOException- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
flushpublic void flush() throws java.io.IOException- Specified by:
- flushin interface- java.io.Flushable
- Overrides:
- flushin class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
printpublic void print(boolean b) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites abooleanvalue to the client, with no carriage return-line feed (CRLF) character at the end.- Overrides:
- printin class- ServletOutputStream
- Parameters:
- b- the- booleanvalue to send to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printpublic void print(char c) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites a character to the client, with no carriage return-line feed (CRLF) at the end.- Overrides:
- printin class- ServletOutputStream
- Parameters:
- c- the character to send to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printpublic void print(double d) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites adoublevalue to the client, with no carriage return-line feed (CRLF) at the end.- Overrides:
- printin class- ServletOutputStream
- Parameters:
- d- the- doublevalue to send to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printpublic void print(float f) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites afloatvalue to the client, with no carriage return-line feed (CRLF) at the end.- Overrides:
- printin class- ServletOutputStream
- Parameters:
- f- the- floatvalue to send to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printpublic void print(int i) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites an int to the client, with no carriage return-line feed (CRLF) at the end.- Overrides:
- printin class- ServletOutputStream
- Parameters:
- i- the int to send to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printpublic void print(long l) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites alongvalue to the client, with no carriage return-line feed (CRLF) at the end.- Overrides:
- printin class- ServletOutputStream
- Parameters:
- l- the- longvalue to send to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printpublic void print(java.lang.String s) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites aStringto the client, without a carriage return-line feed (CRLF) character at the end.- Overrides:
- printin class- ServletOutputStream
- Parameters:
- s- the- Stringto send to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println() throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites a carriage return-line feed (CRLF) to the client.- Overrides:
- printlnin class- ServletOutputStream
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println(boolean b) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites abooleanvalue to the client, followed by a carriage return-line feed (CRLF).- Overrides:
- printlnin class- ServletOutputStream
- Parameters:
- b- the- booleanvalue to write to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println(char c) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites a character to the client, followed by a carriage return-line feed (CRLF).- Overrides:
- printlnin class- ServletOutputStream
- Parameters:
- c- the character to write to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println(double d) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites adoublevalue to the client, followed by a carriage return-line feed (CRLF).- Overrides:
- printlnin class- ServletOutputStream
- Parameters:
- d- the- doublevalue to write to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println(float f) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites afloatvalue to the client, followed by a carriage return-line feed (CRLF).- Overrides:
- printlnin class- ServletOutputStream
- Parameters:
- f- the- floatvalue to write to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println(int i) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites an int to the client, followed by a carriage return-line feed (CRLF) character.- Overrides:
- printlnin class- ServletOutputStream
- Parameters:
- i- the int to write to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println(long l) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites alongvalue to the client, followed by a carriage return-line feed (CRLF).- Overrides:
- printlnin class- ServletOutputStream
- Parameters:
- l- the- longvalue to write to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
printlnpublic void println(java.lang.String s) throws java.io.IOExceptionDescription copied from class:javax.servlet.ServletOutputStreamWrites aStringto the client, followed by a carriage return-line feed (CRLF).- Overrides:
- printlnin class- ServletOutputStream
- Parameters:
- s- the- Stringto write to the client
- Throws:
- java.io.IOException- if an input or output exception occurred
 
 - 
writepublic void write(byte[] b) throws java.io.IOException- Overrides:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
writepublic void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
writepublic void write(int b) throws java.io.IOException- Specified by:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
isReadypublic boolean isReady() TODO SERVLET 3.1- Specified by:
- isReadyin class- ServletOutputStream
- Returns:
- trueif data can be written, else- false
 
 - 
setWriteListenerpublic void setWriteListener(WriteListener listener) TODO SERVLET 3.1- Specified by:
- setWriteListenerin class- ServletOutputStream
- Parameters:
- listener- The non-blocking IO write listener
 
 
- 
 
-