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

All Implemented Interfaces:
    Serializable

All Known Implementing Classes:
    HttpResponseImpl

This interface takes care of HTTP Responses. It sends data back to the browser.
Method from org.apache.openejb.webadmin.HttpResponse Summary:
getCode,   getContentType,   getHeader,   getOutputStream,   getPrintWriter,   getServerName,   reset,   reset,   setCode,   setContentType,   setHeader,   setResponseString
Method from org.apache.openejb.webadmin.HttpResponse Detail:
 public int getCode()
    gets the HTTP response code
 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()
    Gets the PrintWriter to send data to the browser
 public String getServerName()
    gets the name of the server being used
 public  void reset()
    resets the data to be sent to the browser
 public  void reset(int code,
    String responseString)
    resets the data to be sent to the browser with the response code and response string
 public  void setCode(int code)
    sets the HTTP response code to be sent to the browser. These codes are: OPTIONS = 0 GET = 1 HEAD = 2 POST = 3 PUT = 4 DELETE = 5 TRACE = 6 CONNECT = 7 UNSUPPORTED = 8
 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 setResponseString(String responseString)
    Sets the response string to be sent to the browser