Interface IRequest
- All Known Subinterfaces:
- IRequest,- com.ibm.websphere.servlet.request.extended.IRequestExtended
public interface IRequest
Interface that the webcontainer recognizes as the types of requests that it can handle.
 The webcontainer will call the methods on this interface during request processing.
- 
Method SummaryModifier and TypeMethodDescriptionvoidRequests the implementation to clear its headers datastructure.getAllCookieValues(String cookieName) Get the values for the cookie specified.Returns the authorization Type of the current requestReturns the cipherSuiteintMethod for getting the Content Length of the RequestMethod for getting the Content Type of the Requestjakarta.servlet.http.Cookie[]Get all the cookies for the request.byte[]getCookieValue(String cookieName) Get the value for the cookie specified.longgetDateHeader(String name) Returns the header value in long date formatReturns the value for the specified header requestedGet all client header field names.getHeaders(String headerName) Returns all values for the specified header requestedReturns the input stream for this requestintgetIntHeader(String name) Returns the header value as an intReturns the local addressReturns the local nameintReturns the local portReturns the method of the requestReturns the array of client certificatesReturns the protocol that the remote agent is speakingGet the query string of the request.Returns the IP address of the remote agent, or null if not knownReturns the host name of the remote agent, or null if not knownintReturns the port used by the remote agent, or null if not knownReturns the remote user for the requestReturns the URI of the requestMethod that returns the scheme of the requestReturns the Server hostnameintReturns the port of this connectionGet the session id for this requestbooleanbyte[]Get at SSL Session IDReturns the webcontainer channel response object for this requestbooleanReturns whether the request was sent from the pluginbooleanisSSL()Method to determine if the request is running on an SSL Connectionbooleanvoidlock()voidremoveHeader(String headerName) voidsetShouldClose(boolean b) voidsetShouldDestroy(boolean shouldDestroy) voidsetShouldReuse(boolean b) voidvoidunlock()
- 
Method Details- 
getMethodString getMethod()Returns the method of the request- Returns:
- String the method of the request
 
- 
getRequestURIString getRequestURI()Returns the URI of the request- Returns:
- String the URI of the request
 
- 
getRemoteUserString getRemoteUser()Returns the remote user for the request- Returns:
- String the remote user of the request
 
- 
getAuthTypeString getAuthType()Returns the authorization Type of the current request- Returns:
- String the authorization type of the request
 
- 
getHeaderReturns the value for the specified header requested- Returns:
- String the given header value
 
- 
getHeadersReturns all values for the specified header requested- Returns:
- Enumeration the given header value
 
- 
getDateHeaderReturns the header value in long date format- Parameters:
- name-
- Returns:
- date header value in date format
 
- 
getIntHeaderReturns the header value as an int- Parameters:
- name-
- Returns:
- Header value as an int
 
- 
clearHeadersvoid clearHeaders()Requests the implementation to clear its headers datastructure. This allows for optimization, as the webcontainer will hold on to the reference to this request object upon finishing of the request processing, to prevent new request object creation for every new request.
- 
getHeaderNamesEnumeration getHeaderNames()Get all client header field names.- Returns:
- the names of all header fields sent by the client
 
- 
getContentLengthint getContentLength()Method for getting the Content Length of the Request- Returns:
- int the length of data in the request
 
- 
getContentTypeString getContentType()Method for getting the Content Type of the Request- Returns:
- String
 
- 
getProtocolString getProtocol()Returns the protocol that the remote agent is speaking- Returns:
- String the protocol of the request
 
- 
getServerNameString getServerName()Returns the Server hostname- Returns:
- String the name of the server machine
 
- 
getServerPortint getServerPort()Returns the port of this connection- Returns:
- int the port of the server
 
- 
getRemoteHostString getRemoteHost()Returns the host name of the remote agent, or null if not known- Returns:
- String the DNS name of the client machine
 
- 
getRemoteAddrString getRemoteAddr()Returns the IP address of the remote agent, or null if not known- Returns:
- String the IP Address of the client machine
 
- 
getRemotePortint getRemotePort()Returns the port used by the remote agent, or null if not known- Returns:
- int the port of the client machine
 
- 
getSchemeString getScheme()Method that returns the scheme of the request- Returns:
- String the scheme of the request
 
- 
getInputStreamReturns the input stream for this request- Parameters:
- InputStream- the input stream to use
- Throws:
- IOException
 
- 
getLocalAddrString getLocalAddr()Returns the local address- Returns:
- String the local address
 
- 
getLocalNameString getLocalName()Returns the local name- Returns:
- String the local name
 
- 
getLocalPortint getLocalPort()Returns the local port- Returns:
- int the local port
 
- 
isSSLboolean isSSL()Method to determine if the request is running on an SSL Connection- Returns:
- boolean true if this connection is an SSL Connection
 
- 
getSSLSessionIDbyte[] getSSLSessionID()Get at SSL Session ID- Returns:
- byte[] containing the SSL session ID
 
- 
getSessionIDString getSessionID()Get the session id for this request- Returns:
- String the session id
 
- 
isProxiedboolean isProxied()Returns whether the request was sent from the plugin- Returns:
- boolean true if plugin sent the request
 
- 
getWCCResponseIResponse getWCCResponse()Returns the webcontainer channel response object for this request- Returns:
- IWCCResponse the response associated with this request
 
- 
getCipherSuiteString getCipherSuite()Returns the cipherSuite- Returns:
- Returns the cipherSuite
 
- 
getPeerCertificatesX509Certificate[] getPeerCertificates()Returns the array of client certificates- Returns:
- Returns the client certificates
 
- 
getQueryStringString getQueryString()Get the query string of the request.- Returns:
- String the query string for the request
 
- 
getCookiesjakarta.servlet.http.Cookie[] getCookies()Get all the cookies for the request.- Returns:
- Cookie[] containing all the cookies
 
- 
getCookieValueGet the value for the cookie specified.- Parameters:
- name- the cookie name
- Returns:
- byte[] the value of the cookie
 
- 
getAllCookieValuesGet the values for the cookie specified.- Parameters:
- name- the cookie name
- Returns:
- List of values associated with this cookie name.
 
- 
getShouldDestroyboolean getShouldDestroy()
- 
setShouldDestroyvoid setShouldDestroy(boolean shouldDestroy) 
- 
setShouldReusevoid setShouldReuse(boolean b) 
- 
setShouldClosevoid setShouldClose(boolean b) 
- 
removeHeader
- 
startAsyncvoid startAsync()
- 
isStartAsyncboolean isStartAsync()
- 
lockvoid lock()
- 
unlockvoid unlock()
 
-