|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface takes care of HTTP Responses. It sends data back to the browser.
Method Summary | |
String |
getContentType()
gets the content type that will be sent to the browser |
String |
getHeader(String name)
Gets a header based on the name passed in |
OutputStream |
getOutputStream()
gets the OutputStream to send data to the browser |
PrintWriter |
getPrintWriter()
Gets the PrintWriter to send data to the browser |
int |
getStatusCode()
gets the HTTP response code |
void |
setContentType(String type)
sets the content type to be sent back to the browser |
void |
setHeader(String name,
String value)
sets a header to be sent back to the browser |
void |
setStatusCode(int code)
sets the HTTP response code to be sent to the browser. |
void |
setStatusMessage(String responseString)
Sets the response string to be sent to the browser |
Method Detail |
public void setHeader(String name, String value)
name
- the name of the headervalue
- the value of the headerpublic String getHeader(String name)
name
- The name of the header
public PrintWriter getPrintWriter()
public OutputStream getOutputStream()
public void setContentType(String type)
type
- the type to be sent to the browser (i.e. "text/html")public String getContentType()
public void setStatusCode(int code)
code
- the code to be sent to the browserpublic int getStatusCode()
public void setStatusMessage(String responseString)
responseString
- the response string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |