| |
|
| org.apache.openejb.webadmin.HttpResponse
All known Subclasses: org.apache.openejb.webadmin.httpd.HttpResponseImpl,
getCode | public int getCode()(Code) | | gets the HTTP response code
the HTTP response code |
getContentType | public String getContentType()(Code) | | gets the content type that will be sent to the browser
the content type (i.e. "text/html") |
getHeader | public String getHeader(String name)(Code) | | Gets a header based on the name passed in
Parameters: name - The name of the header the value of the header |
getOutputStream | public java.io.OutputStream getOutputStream()(Code) | | gets the OutputStream to send data to the browser
the OutputStream to send data to the browser |
getPrintWriter | public java.io.PrintWriter getPrintWriter()(Code) | | Gets the PrintWriter to send data to the browser
the PrintWriter to send data to the browser |
getServerName | public String getServerName()(Code) | | gets the name of the server being used
the name of the server |
reset | public void reset()(Code) | | resets the data to be sent to the browser
|
reset | public void reset(int code, String responseString)(Code) | | resets the data to be sent to the browser with the response code and response
string
Parameters: code - the code to be sent to the browser Parameters: responseString - the response string to be sent to the browser |
setCode | public void setCode(int code)(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
Parameters: code - the code to be sent to the browser |
setContentType | public void setContentType(String type)(Code) | | sets the content type to be sent back to the browser
Parameters: type - the type to be sent to the browser (i.e. "text/html") |
setHeader | public void setHeader(String name, String value)(Code) | | sets a header to be sent back to the browser
Parameters: name - the name of the header Parameters: value - the value of the header |
setResponseString | public void setResponseString(String responseString)(Code) | | Sets the response string to be sent to the browser
Parameters: responseString - the response string |
|
|
|