|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Response
Represents a server response.
| Method Summary | |
|---|---|
java.io.OutputStream |
getOutputStream()
Returns an OutputStream suitable for writing binary data in the response. |
void |
setContentLength(int length)
Sets the length of the content body in the response. |
void |
setContentType(java.lang.String mimeType)
Sets the content type of the response being sent to the client, as a MIME type string. |
| Method Detail |
|---|
java.io.OutputStream getOutputStream()
throws java.io.IOException
null if the response does not allow writing data
java.io.IOException - if an output exception occurredvoid setContentLength(int length)
length - an integer specifying the length of the content being returned to the clientvoid setContentType(java.lang.String mimeType)
text/html. If the MIME type is not relevant to the type of connection, it will simply be ignored.
mimeType - the MIME type for this response, according to the RFC 2045.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||