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
|
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. |
BServletRequest.HttpOutputStream
public BServletRequest.HttpOutputStream(OutputStream out)
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