|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines an object to assist in sending a response to the client.
Method Summary | |
int |
getBufferSize()
Returns the actual buffer size used for the response. |
java.lang.String |
getCharacterEncoding()
Returns the name of the charset used for the MIME body sent in this response. |
java.util.Locale |
getLocale()
Returns the locale assigned to the response. |
java.io.OutputStream |
getOutputStream()
Returns a OutputStream suitable for writing binary data in the response. |
java.io.PrintWriter |
getWriter()
Returns a PrintWriter object that can send character text to the client. |
void |
setBufferSize(int i)
Sets the preferred buffer size for the body of the response. |
void |
setContentLength(int i)
Sets the length of the content body in the response. |
void |
setContentType(java.lang.String s)
Sets the content type of the response being sent to the client. |
void |
setLocale(java.util.Locale locale)
Sets the locale of the response, setting the headers (including the Content-Type's charset) as appropriate. |
Methods inherited from interface org.mgif.connectivity.transfer.Attributes |
getAttribute, getAttributeNames, getAttributes, isAttribute, removeAttribute, setAttribute |
Method Detail |
public int getBufferSize()
public java.lang.String getCharacterEncoding()
See the Internet RFCs such as RFC 2045 for more information on MIME. Protocols such as SMTP and HTTP define profiles of MIME, and those standards are still evolving.
public java.util.Locale getLocale()
public java.io.OutputStream getOutputStream() throws java.io.IOException
IOException
- if an input or output exception occurredpublic java.io.PrintWriter getWriter() throws java.io.IOException
IOException
- if an input or output exception occurredpublic void setBufferSize(int i)
i
- the preferred buffer sizepublic void setContentLength(int i)
i
- an integer specifying the length of the content being
returned to the client.public void setContentType(java.lang.String s)
See the Internet RFCs such as RFC 2045 for more information on MIME. Protocols such as SMTP and HTTP define profiles of MIME, and those standards are still evolving.
s
- a String specifying the MIME type of the contentpublic void setLocale(java.util.Locale locale)
locale
- the locale of the response
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |