Home » openejb-3.1.2-src » org.apache » openejb » server » httpd » [javadoc | source]
org.apache.openejb.server.httpd
public interface: HttpResponse [javadoc | source]

All Implemented Interfaces:
    Serializable

All Known Implementing Classes:
    ServletResponseAdapter, HttpResponseImpl

This interface takes care of HTTP Responses. It sends data back to the browser.
Method from org.apache.openejb.server.httpd.HttpResponse Summary:
flushBuffer,   getContentType,   getHeader,   getOutputStream,   getPrintWriter,   getStatusCode,   setContentType,   setHeader,   setStatusCode,   setStatusMessage
Method from org.apache.openejb.server.httpd.HttpResponse Detail:
 public  void flushBuffer() throws IOException
    Flushes the output buffer to the client.
 public String getContentType()
    Gets the content type that will be sent to the browser.
 public String getHeader(String name)
    Gets a header based on the name passed in
 public OutputStream getOutputStream()
    Gets the OutputStream to send data to the browser
 public PrintWriter getPrintWriter() throws IOException
    Gets the PrintWriter to send data to the browser
 public int getStatusCode()
    Gets the response status code that will be sent to the browser
 public  void setContentType(String type)
    Sets the content type to be sent back to the browser.
 public  void setHeader(String name,
    String value)
    Sets a header to be sent back to the browser
 public  void setStatusCode(int code)
    Sets the HTTP response status code to be sent to the browser.
 public  void setStatusMessage(String responseString)
    Sets the response string to be sent to the browser