Interface IExtendedRequest
-
- All Superinterfaces:
javax.servlet.http.HttpServletRequest,javax.servlet.ServletRequest
- All Known Implementing Classes:
DummyRequest
public interface IExtendedRequest extends javax.servlet.http.HttpServletRequestIExtendedRequest 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 voidaddParameter(java.lang.String name, java.lang.String[] values)voidaggregateQueryStringParams(java.lang.String additionalQueryString, boolean setQS)voidattributeAdded(java.lang.String key, java.lang.Object newVal)voidattributeRemoved(java.lang.String key, java.lang.Object oldVal)voidattributeReplaced(java.lang.String key, java.lang.Object oldVal)voidcloseResponseOutput()java.util.HashMapdeserializeInputStreamData(byte[][] input)voiddestroy()voidfinish()voidfinishAndDestroyConnectionContext()java.util.ListgetAllCookieValues(java.lang.String cookieName)Get the values for the cookie specified.javax.servlet.AsyncContextgetAsyncContext()byte[]getCookieValueAsBytes(java.lang.String cookieName)Returns a cookie value as bytesjava.lang.StringgetEncodedRequestURI()returns url with encoded session information of the incoming requestjava.util.HashMapgetInputStreamData()IRequestgetIRequest()java.lang.StringgetPathInfo()java.lang.StringgetQueryString()java.lang.StringgetReaderEncoding()java.lang.StringgetRequestURI()IExtendedResponsegetResponse()booleangetRunningCollaborators()Returns boolean that indicates if collaborators are running.java.lang.ObjectgetSessionAffinityContext()Get the SessionAffinityContext for this requestbyte[]getSSLId()Returns incoming SSL session id of the request.java.lang.StringgetUpdatedSessionId()returns sessionId that is being generated for this requestIWebAppDispatcherContextgetWebAppDispatcherContext()voidinitForNextRequest(IRequest req)voidpushParameterStack()voidremoveHeader(java.lang.String header)voidremoveQSFromList()byte[][]serializeInputStreamData(java.util.Map isd)Serialize the Map object of InputStreamData.voidsetAsyncStarted(boolean b)voidsetAsyncSupported(boolean asyncSupported)voidsetDispatcherType(javax.servlet.DispatcherType dispatcherType)voidsetInputStreamData(java.util.HashMap inStreamInfo)voidsetMethod(java.lang.String method)voidsetQueryString(java.lang.String qs)voidsetResponse(IExtendedResponse extResp)voidsetRunningCollaborators(boolean runningCollaborators)Sets boolean used to indicate to session manager if collaborators are running.voidsetSessionAffinityContext(java.lang.Object sac)Sets SessionAffinityContext for this requestvoidsetSessionId(java.lang.String id)Sets sessionId that is being generated for this requestvoidsetValuesIfMultiReadofPostdataEnabled()voidsetWebAppDispatcherContext(IWebAppDispatcherContext ctx)longsizeInputStreamData(java.util.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, 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:
getQueryStringin 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:
getPathInfoin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
java.lang.String getRequestURI()
- Specified by:
getRequestURIin interfacejavax.servlet.http.HttpServletRequest
-
removeHeader
void removeHeader(java.lang.String header)
-
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
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.IllegalStateExceptionSerialize 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.IOExceptionjava.io.UnsupportedEncodingExceptionjava.lang.IllegalStateException
-
deserializeInputStreamData
java.util.HashMap deserializeInputStreamData(byte[][] input) throws java.io.UnsupportedEncodingException, java.lang.IllegalStateException- Throws:
java.io.UnsupportedEncodingExceptionjava.lang.IllegalStateException
-
sizeInputStreamData
long sizeInputStreamData(java.util.Map isd) throws java.io.UnsupportedEncodingException, java.lang.IllegalStateExceptionreturns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.- Throws:
java.io.UnsupportedEncodingExceptionjava.lang.IllegalStateException
-
setValuesIfMultiReadofPostdataEnabled
void setValuesIfMultiReadofPostdataEnabled()
-
-