Class DummyRequest
java.lang.Object
com.ibm.wsspi.webcontainer.servlet.DummyRequest
- All Implemented Interfaces:
IExtendedRequest
,javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
public class DummyRequest
extends Object
implements javax.servlet.http.HttpServletRequest, IExtendedRequest
-
Field Summary
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
Constructors -
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) boolean
authenticate
(javax.servlet.http.HttpServletResponse arg0) void
deserializeInputStreamData
(byte[][] input) void
destroy()
void
finish()
void
getAllCookieValues
(String cookieName) Get the values for the cookie specified.javax.servlet.AsyncContext
getAttribute
(String arg0) int
javax.servlet.http.Cookie[]
byte[]
getCookieValueAsBytes
(String cookieName) Returns a cookie value as byteslong
getDateHeader
(String arg0) javax.servlet.DispatcherType
returns url with encoded session information of the incoming requestgetHeaders
(String arg0) javax.servlet.ServletInputStream
int
getIntHeader
(String arg0) int
getParameter
(String arg0) String[]
getParameterValues
(String arg0) javax.servlet.http.Part
Collection<javax.servlet.http.Part>
getParts()
getRealPath
(String arg0) int
javax.servlet.RequestDispatcher
getRequestDispatcher
(String arg0) boolean
Returns boolean that indicates if collaborators are running.int
javax.servlet.ServletContext
javax.servlet.http.HttpSession
javax.servlet.http.HttpSession
getSession
(boolean arg0) Get the SessionAffinityContext for this requestbyte[]
getSSLId()
Returns incoming SSL session id of the request.returns sessionId that is being generated for this requestvoid
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSecure()
boolean
isUserInRole
(String arg0) void
void
logout()
void
void
removeAttribute
(String arg0) void
removeHeader
(String header) void
byte[][]
Serialize the Map object of InputStreamData.void
setAsyncStarted
(boolean b) void
setAsyncSupported
(boolean asyncSupported) void
setAttribute
(String arg0, Object arg1) void
setCharacterEncoding
(String arg0) 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()
javax.servlet.AsyncContext
javax.servlet.AsyncContext
startAsync
(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1)
-
Constructor Details
-
DummyRequest
public DummyRequest()
-
-
Method Details
-
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse arg0) - Specified by:
authenticate
in interfacejavax.servlet.http.HttpServletRequest
-
getAuthType
- Specified by:
getAuthType
in interfacejavax.servlet.http.HttpServletRequest
-
getContextPath
- Specified by:
getContextPath
in interfacejavax.servlet.http.HttpServletRequest
-
getCookies
public javax.servlet.http.Cookie[] getCookies()- Specified by:
getCookies
in interfacejavax.servlet.http.HttpServletRequest
-
getDateHeader
- Specified by:
getDateHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getHeader
- Specified by:
getHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNames
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
- Specified by:
getHeaders
in interfacejavax.servlet.http.HttpServletRequest
-
getIntHeader
- Specified by:
getIntHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getMethod
- Specified by:
getMethod
in interfacejavax.servlet.http.HttpServletRequest
-
getPart
- Specified by:
getPart
in interfacejavax.servlet.http.HttpServletRequest
-
getParts
- Specified by:
getParts
in interfacejavax.servlet.http.HttpServletRequest
-
getPathInfo
- Specified by:
getPathInfo
in interfacejavax.servlet.http.HttpServletRequest
- Specified by:
getPathInfo
in interfaceIExtendedRequest
-
getPathTranslated
- Specified by:
getPathTranslated
in interfacejavax.servlet.http.HttpServletRequest
-
getQueryString
- Specified by:
getQueryString
in interfacejavax.servlet.http.HttpServletRequest
- Specified by:
getQueryString
in interfaceIExtendedRequest
-
getRemoteUser
- Specified by:
getRemoteUser
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
- Specified by:
getRequestURI
in interfacejavax.servlet.http.HttpServletRequest
- Specified by:
getRequestURI
in interfaceIExtendedRequest
-
getRequestURL
- Specified by:
getRequestURL
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionId
in interfacejavax.servlet.http.HttpServletRequest
-
getServletPath
- Specified by:
getServletPath
in interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession()- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession(boolean arg0) - Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookie
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURL
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()- Specified by:
isRequestedSessionIdFromUrl
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValid
in interfacejavax.servlet.http.HttpServletRequest
-
isUserInRole
- Specified by:
isUserInRole
in interfacejavax.servlet.http.HttpServletRequest
-
login
- Specified by:
login
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletException- Specified by:
logout
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContext
in interfaceIExtendedRequest
- Specified by:
getAsyncContext
in interfacejavax.servlet.ServletRequest
-
getAttribute
- Specified by:
getAttribute
in interfacejavax.servlet.ServletRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.servlet.ServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfacejavax.servlet.ServletRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLength
in interfacejavax.servlet.ServletRequest
-
getContentType
- Specified by:
getContentType
in interfacejavax.servlet.ServletRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherType
in interfacejavax.servlet.ServletRequest
-
getInputStream
- Specified by:
getInputStream
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getLocalAddr
- Specified by:
getLocalAddr
in interfacejavax.servlet.ServletRequest
-
getLocalName
- Specified by:
getLocalName
in interfacejavax.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPort
in interfacejavax.servlet.ServletRequest
-
getLocale
- Specified by:
getLocale
in interfacejavax.servlet.ServletRequest
-
getLocales
- Specified by:
getLocales
in interfacejavax.servlet.ServletRequest
-
getParameter
- Specified by:
getParameter
in interfacejavax.servlet.ServletRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfacejavax.servlet.ServletRequest
-
getParameterNames
- Specified by:
getParameterNames
in interfacejavax.servlet.ServletRequest
-
getParameterValues
- Specified by:
getParameterValues
in interfacejavax.servlet.ServletRequest
-
getProtocol
- Specified by:
getProtocol
in interfacejavax.servlet.ServletRequest
-
getReader
- Specified by:
getReader
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getRealPath
- Specified by:
getRealPath
in interfacejavax.servlet.ServletRequest
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfacejavax.servlet.ServletRequest
-
getRemoteHost
- Specified by:
getRemoteHost
in interfacejavax.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePort
in interfacejavax.servlet.ServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletRequest
-
getScheme
- Specified by:
getScheme
in interfacejavax.servlet.ServletRequest
-
getServerName
- Specified by:
getServerName
in interfacejavax.servlet.ServletRequest
-
getServerPort
public int getServerPort()- Specified by:
getServerPort
in interfacejavax.servlet.ServletRequest
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacejavax.servlet.ServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStarted
in interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupported
in interfacejavax.servlet.ServletRequest
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfacejavax.servlet.ServletRequest
-
removeAttribute
- Specified by:
removeAttribute
in interfacejavax.servlet.ServletRequest
-
setAttribute
- Specified by:
setAttribute
in interfacejavax.servlet.ServletRequest
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfacejavax.servlet.ServletRequest
- Throws:
UnsupportedEncodingException
-
startAsync
public javax.servlet.AsyncContext startAsync()- Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1) - Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
-
addParameter
- Specified by:
addParameter
in interfaceIExtendedRequest
-
aggregateQueryStringParams
- Specified by:
aggregateQueryStringParams
in interfaceIExtendedRequest
-
attributeAdded
- Specified by:
attributeAdded
in interfaceIExtendedRequest
-
attributeRemoved
- Specified by:
attributeRemoved
in interfaceIExtendedRequest
-
attributeReplaced
- Specified by:
attributeReplaced
in interfaceIExtendedRequest
-
destroy
public void destroy()- Specified by:
destroy
in interfaceIExtendedRequest
-
finish
public void finish() throws javax.servlet.ServletException- Specified by:
finish
in interfaceIExtendedRequest
- Throws:
javax.servlet.ServletException
-
getAllCookieValues
Description copied from interface:IExtendedRequest
Get the values for the cookie specified.- Specified by:
getAllCookieValues
in interfaceIExtendedRequest
- Returns:
- List of values associated with this cookie name.
-
getCookieValueAsBytes
Description copied from interface:IExtendedRequest
Returns a cookie value as bytes- Specified by:
getCookieValueAsBytes
in interfaceIExtendedRequest
-
getEncodedRequestURI
Description copied from interface:IExtendedRequest
returns url with encoded session information of the incoming request- Specified by:
getEncodedRequestURI
in interfaceIExtendedRequest
-
getIRequest
- Specified by:
getIRequest
in interfaceIExtendedRequest
-
getReaderEncoding
- Specified by:
getReaderEncoding
in interfaceIExtendedRequest
-
getResponse
- Specified by:
getResponse
in interfaceIExtendedRequest
-
getRunningCollaborators
public boolean getRunningCollaborators()Description copied from interface:IExtendedRequest
Returns boolean that indicates if collaborators are running. Used by session manager when session security integration is enabled.- Specified by:
getRunningCollaborators
in interfaceIExtendedRequest
-
getSSLId
public byte[] getSSLId()Description copied from interface:IExtendedRequest
Returns incoming SSL session id of the request. Applicable only for requests over ssl- Specified by:
getSSLId
in interfaceIExtendedRequest
-
getSessionAffinityContext
Description copied from interface:IExtendedRequest
Get the SessionAffinityContext for this request- Specified by:
getSessionAffinityContext
in interfaceIExtendedRequest
- Returns:
- SessionAffinityContext object
-
getUpdatedSessionId
Description copied from interface:IExtendedRequest
returns sessionId that is being generated for this request- Specified by:
getUpdatedSessionId
in interfaceIExtendedRequest
-
getWebAppDispatcherContext
- Specified by:
getWebAppDispatcherContext
in interfaceIExtendedRequest
-
initForNextRequest
- Specified by:
initForNextRequest
in interfaceIExtendedRequest
-
pushParameterStack
public void pushParameterStack()- Specified by:
pushParameterStack
in interfaceIExtendedRequest
-
removeHeader
- Specified by:
removeHeader
in interfaceIExtendedRequest
-
removeQSFromList
public void removeQSFromList()- Specified by:
removeQSFromList
in interfaceIExtendedRequest
-
setMethod
- Specified by:
setMethod
in interfaceIExtendedRequest
-
setQueryString
- Specified by:
setQueryString
in interfaceIExtendedRequest
-
setResponse
- Specified by:
setResponse
in interfaceIExtendedRequest
-
setRunningCollaborators
public void setRunningCollaborators(boolean runningCollaborators) Description copied from interface:IExtendedRequest
Sets boolean used to indicate to session manager if collaborators are running.- Specified by:
setRunningCollaborators
in interfaceIExtendedRequest
-
setSessionAffinityContext
Description copied from interface:IExtendedRequest
Sets SessionAffinityContext for this request- Specified by:
setSessionAffinityContext
in interfaceIExtendedRequest
-
setSessionId
Description copied from interface:IExtendedRequest
Sets sessionId that is being generated for this request- Specified by:
setSessionId
in interfaceIExtendedRequest
-
setWebAppDispatcherContext
- Specified by:
setWebAppDispatcherContext
in interfaceIExtendedRequest
-
start
public void start()- Specified by:
start
in interfaceIExtendedRequest
-
closeResponseOutput
public void closeResponseOutput()- Specified by:
closeResponseOutput
in interfaceIExtendedRequest
-
finishAndDestroyConnectionContext
public void finishAndDestroyConnectionContext()- Specified by:
finishAndDestroyConnectionContext
in interfaceIExtendedRequest
-
setAsyncSupported
public void setAsyncSupported(boolean asyncSupported) - Specified by:
setAsyncSupported
in interfaceIExtendedRequest
-
setDispatcherType
public void setDispatcherType(javax.servlet.DispatcherType dispatcherType) - Specified by:
setDispatcherType
in interfaceIExtendedRequest
-
setAsyncStarted
public void setAsyncStarted(boolean b) - Specified by:
setAsyncStarted
in interfaceIExtendedRequest
-
getInputStreamData
- Specified by:
getInputStreamData
in interfaceIExtendedRequest
- Throws:
IOException
-
setInputStreamData
- Specified by:
setInputStreamData
in interfaceIExtendedRequest
- Throws:
IOException
-
serializeInputStreamData
public byte[][] serializeInputStreamData(Map isd) throws IOException, UnsupportedEncodingException, IllegalStateException Description copied from interface:IExtendedRequest
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.- Specified by:
serializeInputStreamData
in interfaceIExtendedRequest
- Throws:
IOException
UnsupportedEncodingException
IllegalStateException
-
deserializeInputStreamData
public HashMap deserializeInputStreamData(byte[][] input) throws UnsupportedEncodingException, IllegalStateException - Specified by:
deserializeInputStreamData
in interfaceIExtendedRequest
- Throws:
UnsupportedEncodingException
IllegalStateException
-
sizeInputStreamData
Description copied from interface:IExtendedRequest
returns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.- Specified by:
sizeInputStreamData
in interfaceIExtendedRequest
- Throws:
UnsupportedEncodingException
IllegalStateException
-
setValuesIfMultiReadofPostdataEnabled
public void setValuesIfMultiReadofPostdataEnabled()- Specified by:
setValuesIfMultiReadofPostdataEnabled
in interfaceIExtendedRequest
-