Java Reference
In-Depth Information
The getContentLength() method returns an integer value equal to the length of the request's
data. It is equivalent to the CGI variable CONTENT_LENGTH . getContentLength() has no para-
meters and throws no exceptions.
B
It returns this value:
int
The getContentType() Method
public java.lang.String getContentType()
The getContentType() method returns a string representing the MIME type of the request's
data. It is equivalent to the CGI variable CONTENT_TYPE . getContentType() has no parameters
and throws no exceptions.
It returns this value:
java.lang.String
The getInputStream() Method
public ServletInputStream getInputStream()
throws java.io.IOException
The getInputStream() method returns an input stream for reading binary data from the
request's body. getInputStream() has no parameters.
It returns this value:
ServletInputStream
It throws this exception:
java.io.IOException
The getLocale() Method
public Locale getLocale()
The getLocale() method returns the client's most preferred locale. getLocale() has no para-
meters and throws no exceptions.
It returns this value:
Locale
The getLocales() Method
public Enumeration getLocales()
 
Search WWH ::




Custom Search