| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.bridge.http.HttpResponse
public class HttpResponse
A simple HTTP response implementation.
| Constructor Summary | |
|---|---|
| HttpResponse(java.io.OutputStream outputStream)Create a new HTTP response with the given OutputStream | |
| Method Summary | |
|---|---|
|  void | addHeader(java.lang.String string,
          java.lang.String string2)Add a response header, in this implementation identical to setHeader | 
|  void | close()Close the response | 
|  void | flushBuffer() | 
|  java.io.OutputStream | getOutputStream()Returns the OutputStream of the response. | 
|  void | setContentLength(int length)Set the content length of the response. | 
|  void | setHeader(java.lang.String string,
          java.lang.String val)Set the response header | 
|  void | setStatus(int code)Set the response status. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public HttpResponse(java.io.OutputStream outputStream)
outputStream - The OutputStream.
        /*| Method Detail | 
|---|
public void setHeader(java.lang.String string,
                      java.lang.String val)
string - The header keyval - The header value.public java.io.OutputStream getOutputStream()
HttpRequest.setContentLength(int)public void setStatus(int code)
code - 
public void addHeader(java.lang.String string,
                      java.lang.String string2)
string - The headerstring2 - The header valuesetHeader(String, String)
public void setContentLength(int length)
                      throws java.io.IOException
length - The content length
java.io.IOExceptiongetOutputStream()
public void close()
           throws java.io.IOException
java.io.IOException
public void flushBuffer()
                 throws java.io.IOException
java.io.IOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||