fr.xebia.servlet.filter
Class ExpiresFilter.XServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by fr.xebia.servlet.filter.ExpiresFilter.XServletOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
ExpiresFilter

public class ExpiresFilter.XServletOutputStream
extends javax.servlet.ServletOutputStream

Wrapping extension of ServletOutputStream to trap the "Start Write Response Body" event.


Constructor Summary
ExpiresFilter.XServletOutputStream(javax.servlet.ServletOutputStream servletOutputStream, javax.servlet.http.HttpServletRequest request, ExpiresFilter.XHttpServletResponse response)
           
 
Method Summary
 void close()
           
 void flush()
           
 void print(boolean b)
           
 void print(char c)
           
 void print(double d)
           
 void print(float f)
           
 void print(int i)
           
 void print(long l)
           
 void print(String s)
           
 void println()
           
 void println(boolean b)
           
 void println(char c)
           
 void println(double d)
           
 void println(float f)
           
 void println(int i)
           
 void println(long l)
           
 void println(String s)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpiresFilter.XServletOutputStream

public ExpiresFilter.XServletOutputStream(javax.servlet.ServletOutputStream servletOutputStream,
                                          javax.servlet.http.HttpServletRequest request,
                                          ExpiresFilter.XHttpServletResponse response)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

print

public void print(boolean b)
           throws IOException
Overrides:
print in class javax.servlet.ServletOutputStream
Throws:
IOException

print

public void print(char c)
           throws IOException
Overrides:
print in class javax.servlet.ServletOutputStream
Throws:
IOException

print

public void print(double d)
           throws IOException
Overrides:
print in class javax.servlet.ServletOutputStream
Throws:
IOException

print

public void print(float f)
           throws IOException
Overrides:
print in class javax.servlet.ServletOutputStream
Throws:
IOException

print

public void print(int i)
           throws IOException
Overrides:
print in class javax.servlet.ServletOutputStream
Throws:
IOException

print

public void print(long l)
           throws IOException
Overrides:
print in class javax.servlet.ServletOutputStream
Throws:
IOException

print

public void print(String s)
           throws IOException
Overrides:
print in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println()
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println(boolean b)
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println(char c)
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println(double d)
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println(float f)
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println(int i)
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println(long l)
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

println

public void println(String s)
             throws IOException
Overrides:
println in class javax.servlet.ServletOutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException


Copyright © 2012. All Rights Reserved.