Class ExpiresFilter.XPrintWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
org.apache.catalina.filters.ExpiresFilter.XPrintWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
ExpiresFilter
Wrapping extension of
PrintWriter
to trap the "Start Write Response Body" event.-
Field Summary
-
Constructor Summary
ConstructorDescriptionXPrintWriter
(PrintWriter out, HttpServletRequest request, ExpiresFilter.XHttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence csq) append
(CharSequence csq, int start, int end) void
close()
void
flush()
void
print
(boolean b) void
print
(char c) void
print
(char[] s) void
print
(double d) void
print
(float f) void
print
(int i) void
print
(long l) void
void
void
println()
void
println
(boolean x) void
println
(char x) void
println
(char[] x) void
println
(double x) void
println
(float x) void
println
(int x) void
println
(long x) void
void
void
write
(char[] buf) void
write
(char[] buf, int off, int len) void
write
(int c) void
void
Methods inherited from class java.io.PrintWriter
checkError, clearError, format, format, setError
Methods inherited from class java.io.Writer
nullWriter
-
Constructor Details
-
XPrintWriter
public XPrintWriter(PrintWriter out, HttpServletRequest request, ExpiresFilter.XHttpServletResponse response)
-
-
Method Details
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classPrintWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classPrintWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classPrintWriter
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPrintWriter
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classPrintWriter
-
print
public void print(boolean b) - Overrides:
print
in classPrintWriter
-
print
public void print(char c) - Overrides:
print
in classPrintWriter
-
print
public void print(char[] s) - Overrides:
print
in classPrintWriter
-
print
public void print(double d) - Overrides:
print
in classPrintWriter
-
print
public void print(float f) - Overrides:
print
in classPrintWriter
-
print
public void print(int i) - Overrides:
print
in classPrintWriter
-
print
public void print(long l) - Overrides:
print
in classPrintWriter
-
print
- Overrides:
print
in classPrintWriter
-
print
- Overrides:
print
in classPrintWriter
-
printf
- Overrides:
printf
in classPrintWriter
-
printf
- Overrides:
printf
in classPrintWriter
-
println
public void println()- Overrides:
println
in classPrintWriter
-
println
public void println(boolean x) - Overrides:
println
in classPrintWriter
-
println
public void println(char x) - Overrides:
println
in classPrintWriter
-
println
public void println(char[] x) - Overrides:
println
in classPrintWriter
-
println
public void println(double x) - Overrides:
println
in classPrintWriter
-
println
public void println(float x) - Overrides:
println
in classPrintWriter
-
println
public void println(int x) - Overrides:
println
in classPrintWriter
-
println
public void println(long x) - Overrides:
println
in classPrintWriter
-
println
- Overrides:
println
in classPrintWriter
-
println
- Overrides:
println
in classPrintWriter
-
write
public void write(char[] buf) - Overrides:
write
in classPrintWriter
-
write
public void write(char[] buf, int off, int len) - Overrides:
write
in classPrintWriter
-
write
public void write(int c) - Overrides:
write
in classPrintWriter
-
write
- Overrides:
write
in classPrintWriter
-
write
- Overrides:
write
in classPrintWriter
-