Interface IExtendedRequest
- All Superinterfaces:
javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
- All Known Implementing Classes:
DummyRequest
public interface IExtendedRequest
extends javax.servlet.http.HttpServletRequest
IExtendedRequest is an spi for websphere additions to the standard
ServletRequest methods
- Since:
- WAS7.0
-
Field Summary
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String name, String[] values) void
aggregateQueryStringParams
(String additionalQueryString, boolean setQS) void
attributeAdded
(String key, Object newVal) void
attributeRemoved
(String key, Object oldVal) void
attributeReplaced
(String key, Object oldVal) void
deserializeInputStreamData
(byte[][] input) void
destroy()
void
finish()
void
getAllCookieValues
(String cookieName) Get the values for the cookie specified.javax.servlet.AsyncContext
byte[]
getCookieValueAsBytes
(String cookieName) Returns a cookie value as bytesreturns url with encoded session information of the incoming requestgetInputStreamData
(long maxAllowedLength) boolean
Returns boolean that indicates if collaborators are running.Get the SessionAffinityContext for this requestbyte[]
getSSLId()
Returns incoming SSL session id of the request.returns sessionId that is being generated for this requestvoid
void
void
removeHeader
(String header) void
byte[][]
Serialize the Map object of InputStreamData.void
setAsyncStarted
(boolean b) void
setAsyncSupported
(boolean asyncSupported) void
setDispatcherType
(javax.servlet.DispatcherType dispatcherType) void
setInputStreamData
(HashMap inStreamInfo) void
void
setQueryString
(String qs) void
setResponse
(IExtendedResponse extResp) void
setRunningCollaborators
(boolean runningCollaborators) Sets boolean used to indicate to session manager if collaborators are running.void
Sets SessionAffinityContext for this requestvoid
setSessionId
(String id) Sets sessionId that is being generated for this requestvoid
void
long
sizeInputStreamData
(Map isd) returns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.void
start()
Methods inherited from interface javax.servlet.http.HttpServletRequest
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getRemoteUser, getRequestedSessionId, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
Method Details
-
getSSLId
byte[] getSSLId()Returns incoming SSL session id of the request. Applicable only for requests over ssl -
getCookieValueAsBytes
Returns a cookie value as bytes -
getAllCookieValues
Get the values for the cookie specified.- Parameters:
name
- the cookie name- Returns:
- List of values associated with this cookie name.
-
setSessionId
Sets sessionId that is being generated for this request -
getUpdatedSessionId
String getUpdatedSessionId()returns sessionId that is being generated for this request -
setSessionAffinityContext
Sets SessionAffinityContext for this request- Parameters:
SessionAffinityContext
- object
-
getSessionAffinityContext
Object getSessionAffinityContext()Get the SessionAffinityContext for this request- Returns:
- SessionAffinityContext object
-
getEncodedRequestURI
String getEncodedRequestURI()returns url with encoded session information of the incoming request -
pushParameterStack
void pushParameterStack() -
aggregateQueryStringParams
-
removeQSFromList
void removeQSFromList() -
getQueryString
String getQueryString()- Specified by:
getQueryString
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
-
setQueryString
-
setRunningCollaborators
void setRunningCollaborators(boolean runningCollaborators) Sets boolean used to indicate to session manager if collaborators are running. -
getRunningCollaborators
boolean getRunningCollaborators()Returns boolean that indicates if collaborators are running. Used by session manager when session security integration is enabled. -
getReaderEncoding
String getReaderEncoding() -
getIRequest
IRequest getIRequest() -
attributeAdded
-
attributeRemoved
-
attributeReplaced
-
addParameter
-
setMethod
-
setWebAppDispatcherContext
-
getWebAppDispatcherContext
IWebAppDispatcherContext getWebAppDispatcherContext() -
getResponse
IExtendedResponse getResponse() -
setResponse
-
initForNextRequest
-
start
void start() -
finish
void finish() throws javax.servlet.ServletException- Throws:
javax.servlet.ServletException
-
destroy
void destroy() -
getPathInfo
String getPathInfo()- Specified by:
getPathInfo
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
String getRequestURI()- Specified by:
getRequestURI
in interfacejavax.servlet.http.HttpServletRequest
-
removeHeader
-
getAsyncContext
javax.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContext
in interfacejavax.servlet.ServletRequest
-
closeResponseOutput
void closeResponseOutput() -
setAsyncSupported
void setAsyncSupported(boolean asyncSupported) -
finishAndDestroyConnectionContext
void finishAndDestroyConnectionContext() -
setDispatcherType
void setDispatcherType(javax.servlet.DispatcherType dispatcherType) -
setAsyncStarted
void setAsyncStarted(boolean b) -
getInputStreamData
- Throws:
IOException
-
getInputStreamData
- Throws:
IOException
-
setInputStreamData
- Throws:
IOException
-
serializeInputStreamData
byte[][] serializeInputStreamData(Map isd) throws IOException, UnsupportedEncodingException, IllegalStateException Serialize the Map object of InputStreamData. The format is as follows: byte[0][] : byte array of long value of INPUT_STREAM_CONTENT_DATA_LENGTH byte[1][] : the length of INPUT_STREAM_CONTENT_TYPE byte[2][] : the byte array of the value of INPUT_STREAM_CONTENT_TYPE if the length is zero, it only contains one byte data of which value is zero. byte[3...] : byte array of INPUT_STREAM_CONTENT_DATA (it could be multiple tWAS v9) byte[3] doesn't exist if the length is zero. -
deserializeInputStreamData
HashMap deserializeInputStreamData(byte[][] input) throws UnsupportedEncodingException, IllegalStateException -
sizeInputStreamData
returns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps. -
setValuesIfMultiReadofPostdataEnabled
void setValuesIfMultiReadofPostdataEnabled()
-