org.springframework.mock.web
Class MockHttpServletResponse.ResponseServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by org.springframework.mock.web.DelegatingServletOutputStream
              extended by org.springframework.mock.web.MockHttpServletResponse.ResponseServletOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
MockHttpServletResponse

private class MockHttpServletResponse.ResponseServletOutputStream
extends DelegatingServletOutputStream

Inner class that adapts the ServletOutputStream to mark the response as committed once the buffer size is exceeded.


Constructor Summary
MockHttpServletResponse.ResponseServletOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void flush()
           
 void write(int b)
           
 
Methods inherited from class org.springframework.mock.web.DelegatingServletOutputStream
close, getTargetStream
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHttpServletResponse.ResponseServletOutputStream

public MockHttpServletResponse.ResponseServletOutputStream(java.io.OutputStream out)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class DelegatingServletOutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class DelegatingServletOutputStream
Throws:
java.io.IOException