sunlabs.brazil.servlet
Class BServletRequest.HttpOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--sunlabs.brazil.server.Request.HttpOutputStream
                    |
                    +--sunlabs.brazil.servlet.BServletRequest.HttpOutputStream
Enclosing class:
BServletRequest

public static class BServletRequest.HttpOutputStream
extends Request.HttpOutputStream

An HttpOutputStream that is used by the Brazil Servlet adaptor to add the web application context path to the front of all response URI's so subsequent requests will be mapped to the BrazilServlet's context. See comments in BrazilServlet that describe the assumptions regarding the context path.

See Also:
BrazilServlet

Field Summary
 
Fields inherited from class sunlabs.brazil.server.Request.HttpOutputStream
bytesWritten
 
Constructor Summary
BServletRequest.HttpOutputStream(OutputStream out)
           
 
Method Summary
 void close()
          Remaps URI's in the buffered HTML content and the writes the result to the response stream.
 void sendHeaders(Request request)
          If the response content type is text/html, this method interposes a buffer before the response stream that gathers all content for subsequent URI rewriting.
 
Methods inherited from class sunlabs.brazil.server.Request.HttpOutputStream
write, write, writeBytes
 
Methods inherited from class java.io.FilterOutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BServletRequest.HttpOutputStream

public BServletRequest.HttpOutputStream(OutputStream out)
Method Detail

sendHeaders

public void sendHeaders(Request request)
                 throws IOException
If the response content type is text/html, this method interposes a buffer before the response stream that gathers all content for subsequent URI rewriting.

Overrides:
sendHeaders in class Request.HttpOutputStream
IOException

close

public void close()
           throws IOException
Remaps URI's in the buffered HTML content and the writes the result to the response stream.

Overrides:
close in class FilterOutputStream
IOException

Version 2.1, Generated 12/30/04
Copyright (c) 2001-2004, Sun Microsystems.