|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpResponse
This interface takes care of HTTP Responses. It sends data back to the browser.
| Method Summary | |
|---|---|
void |
flushBuffer()
Flushes the output buffer to the client. |
java.lang.String |
getContentType()
Gets the content type that will be sent to the browser. |
java.lang.String |
getHeader(java.lang.String name)
Gets a header based on the name passed in |
java.io.OutputStream |
getOutputStream()
Gets the OutputStream to send data to the browser |
java.io.PrintWriter |
getPrintWriter()
Gets the PrintWriter to send data to the browser |
int |
getStatusCode()
Gets the response status code that will be sent to the browser |
void |
setContentType(java.lang.String type)
Sets the content type to be sent back to the browser. |
void |
setHeader(java.lang.String name,
java.lang.String value)
Sets a header to be sent back to the browser |
void |
setStatusCode(int code)
Sets the HTTP response status code to be sent to the browser. |
void |
setStatusMessage(java.lang.String responseString)
Sets the response string to be sent to the browser |
| Method Detail |
|---|
java.lang.String getHeader(java.lang.String name)
name - the header name
void setHeader(java.lang.String name,
java.lang.String value)
name - the header namevalue - the header value
java.io.PrintWriter getPrintWriter()
throws java.io.IOException
java.io.IOExceptionjava.io.OutputStream getOutputStream()
java.lang.String getContentType()
void setContentType(java.lang.String type)
type - the type to be sent to the browser (i.e. "text/html")int getStatusCode()
void setStatusCode(int code)
code - the status code to be sent to the browservoid setStatusMessage(java.lang.String responseString)
responseString - the response string
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 | ||||||||