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 TypeMethodDescriptionvoidaddParameter(String name, String[] values) voidaggregateQueryStringParams(String additionalQueryString, boolean setQS) voidattributeAdded(String key, Object newVal) voidattributeRemoved(String key, Object oldVal) voidattributeReplaced(String key, Object oldVal) voiddeserializeInputStreamData(byte[][] input) voiddestroy()voidfinish()voidgetAllCookieValues(String cookieName) Get the values for the cookie specified.javax.servlet.AsyncContextbyte[]getCookieValueAsBytes(String cookieName) Returns a cookie value as bytesreturns url with encoded session information of the incoming requestgetInputStreamData(long maxAllowedLength) booleanReturns 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 requestvoidvoidvoidremoveHeader(String header) voidbyte[][]Serialize the Map object of InputStreamData.voidsetAsyncStarted(boolean b) voidsetAsyncSupported(boolean asyncSupported) voidsetDispatcherType(javax.servlet.DispatcherType dispatcherType) voidsetInputStreamData(HashMap inStreamInfo) voidvoidsetQueryString(String qs) voidsetResponse(IExtendedResponse extResp) voidsetRunningCollaborators(boolean runningCollaborators) Sets boolean used to indicate to session manager if collaborators are running.voidSets SessionAffinityContext for this requestvoidsetSessionId(String id) Sets sessionId that is being generated for this requestvoidvoidlongsizeInputStreamData(Map isd) returns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.voidstart()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, logoutMethods 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:
getQueryStringin 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:
getPathInfoin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
String getRequestURI()- Specified by:
getRequestURIin interfacejavax.servlet.http.HttpServletRequest
-
removeHeader
-
getAsyncContext
javax.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContextin 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()
-