|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines an object to provide client request information.
Method Summary | |
java.lang.String |
getCharacterEncoding()
Returns the name of the character encoding used in the body of this request. |
int |
getContentLength()
Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. |
java.lang.String |
getContentType()
Returns the MIME type of the body of the request, or null if the type is not known |
java.io.InputStream |
getInputStream()
Retrieves the body of the request as binary data using a InputStream. |
java.io.BufferedReader |
getReader()
Retrieves the body of the request as character data using a BufferedReader. |
void |
setCharacterEncoding(java.lang.String s)
Overrides the name of the character encoding used in the body of this request. |
Methods inherited from interface org.mgif.connectivity.transfer.Datagram |
getLocale, getLocales, getProtocol, getScheme, getTerminalId |
Methods inherited from interface org.mgif.connectivity.transfer.Attributes |
getAttribute, getAttributeNames, getAttributes, isAttribute, removeAttribute, setAttribute |
Method Detail |
public java.lang.String getCharacterEncoding()
public int getContentLength()
public java.lang.String getContentType()
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.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if an input or output exception occurredpublic java.io.BufferedReader getReader() throws java.io.IOException
IOException
- if an input or output exception occurredpublic void setCharacterEncoding(java.lang.String s) throws java.io.UnsupportedEncodingException
a
- String containing the name of the chararacter encoding
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |