|
|||||||||
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 | |
---|---|
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(String mimeType)
Sets the content type of the response being sent to the client, as a MIME type string. |
Method Detail |
---|
OutputStream getOutputStream() throws IOException
null
if the response does not allow writing data
IOException
- if an output exception occurredvoid setContentLength(int length)
length
- an integer specifying the length of the content being returned to the clientvoid setContentType(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 |