The Request object retrieves the values that the client browser passed to the server during an HTTP request. The Request object extends InputStream, the methods of which provide access to the data sent to the server from the client as part of a POST request.
public class Request extends InputStream {
public RequestDictionary getServerVariables();
public RequestDictionary getClientCertificate();
public RequestDictionary getForm();
public CookieDictionary getCookies();
public RequestDictionary getQueryString();
public int getTotalBytes();
// java.io.InputStream Methods
public int available();
public void close() throws IOException;
public synchronized void mark(int iReadLimit);
public boolean markSupported();
public synchronized void reset() throws IOException;
public long skip(long iNumToSkip) throws IOException;
public int read() throws IOException,
NullPointerException,
IndexOutOfBoundsException;
public int read(byte[] b) throws IOException,
NullPointerException,
IndexOutOfBoundsException;
public synchronized int read(byte[] b,
int off,
int len) throws IOException,
NullPointerException,
IndexOutOfBoundsException;
}
Request Methods
public RequestDictionary getServerVariables()
Returns the RequestDictionary that contains the values of predetermined environment variables.
public RequestDictionary getClientCertificate()
Returns the RequestDictionary that contains the values of fields stored in the client certificate that is sent in the HTTP request.
public RequestDictionary getForm()
Returns the RequestDictionary that contains the values of form elements in the HTTP request body.
public CookieDictionary getCookies()
Returns the CookieDictionary that contains the cookies sent in the HTTP request.
public RequestDictionary getQueryString()
Returns the RequestDictionary that contains the values of variables in the HTTP query string.
Specifies the total number of bytes the client is sending in the body of the request.
InputStream Methods
public void close() throws IOException;
public synchronized void mark(int iReadLimit);
public boolean markSupported();
public synchronized void reset() throws IOException;
public long skip(long iNumToSkip) throws IOException;
public int read() throws IOException, NullPointerException, IndexOutOfBoundsException
public int read(byte[] b) throws IOException, NullPointerException, IndexOutOfBoundsException
public synchronized int read(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException