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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addParameter(java.lang.String name, java.lang.String[] values)
void
aggregateQueryStringParams(java.lang.String additionalQueryString, boolean setQS)
void
attributeAdded(java.lang.String key, java.lang.Object newVal)
void
attributeRemoved(java.lang.String key, java.lang.Object oldVal)
void
attributeReplaced(java.lang.String key, java.lang.Object oldVal)
void
closeResponseOutput()
java.util.HashMap
deserializeInputStreamData(byte[][] input)
void
destroy()
void
finish()
void
finishAndDestroyConnectionContext()
java.util.List
getAllCookieValues(java.lang.String cookieName)
Get the values for the cookie specified.javax.servlet.AsyncContext
getAsyncContext()
byte[]
getCookieValueAsBytes(java.lang.String cookieName)
Returns a cookie value as bytesjava.lang.String
getEncodedRequestURI()
returns url with encoded session information of the incoming requestjava.util.HashMap
getInputStreamData()
IRequest
getIRequest()
java.lang.String
getPathInfo()
java.lang.String
getQueryString()
java.lang.String
getReaderEncoding()
java.lang.String
getRequestURI()
IExtendedResponse
getResponse()
boolean
getRunningCollaborators()
Returns boolean that indicates if collaborators are running.java.lang.Object
getSessionAffinityContext()
Get the SessionAffinityContext for this requestbyte[]
getSSLId()
Returns incoming SSL session id of the request.java.lang.String
getUpdatedSessionId()
returns sessionId that is being generated for this requestIWebAppDispatcherContext
getWebAppDispatcherContext()
void
initForNextRequest(IRequest req)
void
pushParameterStack()
void
removeHeader(java.lang.String header)
void
removeQSFromList()
byte[][]
serializeInputStreamData(java.util.Map isd)
Serialize the Map object of InputStreamData.void
setAsyncStarted(boolean b)
void
setAsyncSupported(boolean asyncSupported)
void
setDispatcherType(javax.servlet.DispatcherType dispatcherType)
void
setInputStreamData(java.util.HashMap inStreamInfo)
void
setMethod(java.lang.String method)
void
setQueryString(java.lang.String qs)
void
setResponse(IExtendedResponse extResp)
void
setRunningCollaborators(boolean runningCollaborators)
Sets boolean used to indicate to session manager if collaborators are running.void
setSessionAffinityContext(java.lang.Object sac)
Sets SessionAffinityContext for this requestvoid
setSessionId(java.lang.String id)
Sets sessionId that is being generated for this requestvoid
setValuesIfMultiReadofPostdataEnabled()
void
setWebAppDispatcherContext(IWebAppDispatcherContext ctx)
long
sizeInputStreamData(java.util.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 Detail
-
getSSLId
byte[] getSSLId()
Returns incoming SSL session id of the request. Applicable only for requests over ssl
-
getCookieValueAsBytes
byte[] getCookieValueAsBytes(java.lang.String cookieName)
Returns a cookie value as bytes
-
getAllCookieValues
java.util.List getAllCookieValues(java.lang.String cookieName)
Get the values for the cookie specified.- Parameters:
name
- the cookie name- Returns:
- List of values associated with this cookie name.
-
setSessionId
void setSessionId(java.lang.String id)
Sets sessionId that is being generated for this request
-
getUpdatedSessionId
java.lang.String getUpdatedSessionId()
returns sessionId that is being generated for this request
-
setSessionAffinityContext
void setSessionAffinityContext(java.lang.Object sac)
Sets SessionAffinityContext for this request- Parameters:
SessionAffinityContext
- object
-
getSessionAffinityContext
java.lang.Object getSessionAffinityContext()
Get the SessionAffinityContext for this request- Returns:
- SessionAffinityContext object
-
getEncodedRequestURI
java.lang.String getEncodedRequestURI()
returns url with encoded session information of the incoming request
-
pushParameterStack
void pushParameterStack()
-
aggregateQueryStringParams
void aggregateQueryStringParams(java.lang.String additionalQueryString, boolean setQS)
-
removeQSFromList
void removeQSFromList()
-
getQueryString
java.lang.String getQueryString()
- Specified by:
getQueryString
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
-
setQueryString
void setQueryString(java.lang.String qs)
-
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
java.lang.String getReaderEncoding()
-
getIRequest
IRequest getIRequest()
-
attributeAdded
void attributeAdded(java.lang.String key, java.lang.Object newVal)
-
attributeRemoved
void attributeRemoved(java.lang.String key, java.lang.Object oldVal)
-
attributeReplaced
void attributeReplaced(java.lang.String key, java.lang.Object oldVal)
-
addParameter
void addParameter(java.lang.String name, java.lang.String[] values)
-
setMethod
void setMethod(java.lang.String method)
-
setWebAppDispatcherContext
void setWebAppDispatcherContext(IWebAppDispatcherContext ctx)
-
getWebAppDispatcherContext
IWebAppDispatcherContext getWebAppDispatcherContext()
-
getResponse
IExtendedResponse getResponse()
-
setResponse
void setResponse(IExtendedResponse extResp)
-
initForNextRequest
void initForNextRequest(IRequest req)
-
start
void start()
-
finish
void finish() throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
destroy
void destroy()
-
getPathInfo
java.lang.String getPathInfo()
- Specified by:
getPathInfo
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
java.lang.String getRequestURI()
- Specified by:
getRequestURI
in interfacejavax.servlet.http.HttpServletRequest
-
removeHeader
void removeHeader(java.lang.String header)
-
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
java.util.HashMap getInputStreamData() throws java.io.IOException
- Throws:
java.io.IOException
-
setInputStreamData
void setInputStreamData(java.util.HashMap inStreamInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
serializeInputStreamData
byte[][] serializeInputStreamData(java.util.Map isd) throws java.io.IOException, java.io.UnsupportedEncodingException, java.lang.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.- Throws:
java.io.IOException
java.io.UnsupportedEncodingException
java.lang.IllegalStateException
-
deserializeInputStreamData
java.util.HashMap deserializeInputStreamData(byte[][] input) throws java.io.UnsupportedEncodingException, java.lang.IllegalStateException
- Throws:
java.io.UnsupportedEncodingException
java.lang.IllegalStateException
-
sizeInputStreamData
long sizeInputStreamData(java.util.Map isd) throws java.io.UnsupportedEncodingException, java.lang.IllegalStateException
returns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.- Throws:
java.io.UnsupportedEncodingException
java.lang.IllegalStateException
-
setValuesIfMultiReadofPostdataEnabled
void setValuesIfMultiReadofPostdataEnabled()
-
-