Class DummyRequest
java.lang.Object
com.ibm.wsspi.webcontainer.servlet.DummyRequest
- All Implemented Interfaces:
IExtendedRequest
,jakarta.servlet.http.HttpServletRequest
,jakarta.servlet.ServletRequest
public class DummyRequest
extends Object
implements jakarta.servlet.http.HttpServletRequest, IExtendedRequest
-
Field Summary
Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
-
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
(jakarta.servlet.http.HttpServletResponse arg0) void
deserializeInputStreamData
(byte[][] input) void
destroy()
void
finish()
void
getAllCookieValues
(String cookieName) Get the values for the cookie specified.jakarta.servlet.AsyncContext
getAttribute
(String arg0) int
jakarta.servlet.http.Cookie[]
byte[]
getCookieValueAsBytes
(String cookieName) Returns a cookie value as byteslong
getDateHeader
(String arg0) jakarta.servlet.DispatcherType
returns url with encoded session information of the incoming requestgetHeaders
(String arg0) jakarta.servlet.ServletInputStream
int
getIntHeader
(String arg0) int
getParameter
(String arg0) String[]
getParameterValues
(String arg0) jakarta.servlet.http.Part
Collection<jakarta.servlet.http.Part>
getParts()
getRealPath
(String arg0) int
jakarta.servlet.RequestDispatcher
getRequestDispatcher
(String arg0) boolean
Returns boolean that indicates if collaborators are running.int
jakarta.servlet.ServletContext
jakarta.servlet.http.HttpSession
jakarta.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
(jakarta.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()
jakarta.servlet.AsyncContext
jakarta.servlet.AsyncContext
startAsync
(jakarta.servlet.ServletRequest arg0, jakarta.servlet.ServletResponse arg1)
-
Constructor Details
-
DummyRequest
public DummyRequest()
-
-
Method Details
-
authenticate
public boolean authenticate(jakarta.servlet.http.HttpServletResponse arg0) - Specified by:
authenticate
in interfacejakarta.servlet.http.HttpServletRequest
-
getAuthType
- Specified by:
getAuthType
in interfacejakarta.servlet.http.HttpServletRequest
-
getContextPath
- Specified by:
getContextPath
in interfacejakarta.servlet.http.HttpServletRequest
-
getCookies
public jakarta.servlet.http.Cookie[] getCookies()- Specified by:
getCookies
in interfacejakarta.servlet.http.HttpServletRequest
-
getDateHeader
- Specified by:
getDateHeader
in interfacejakarta.servlet.http.HttpServletRequest
-
getHeader
- Specified by:
getHeader
in interfacejakarta.servlet.http.HttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNames
in interfacejakarta.servlet.http.HttpServletRequest
-
getHeaders
- Specified by:
getHeaders
in interfacejakarta.servlet.http.HttpServletRequest
-
getIntHeader
- Specified by:
getIntHeader
in interfacejakarta.servlet.http.HttpServletRequest
-
getMethod
- Specified by:
getMethod
in interfacejakarta.servlet.http.HttpServletRequest
-
getPart
- Specified by:
getPart
in interfacejakarta.servlet.http.HttpServletRequest
-
getParts
- Specified by:
getParts
in interfacejakarta.servlet.http.HttpServletRequest
-
getPathInfo
- Specified by:
getPathInfo
in interfacejakarta.servlet.http.HttpServletRequest
- Specified by:
getPathInfo
in interfaceIExtendedRequest
-
getPathTranslated
- Specified by:
getPathTranslated
in interfacejakarta.servlet.http.HttpServletRequest
-
getQueryString
- Specified by:
getQueryString
in interfacejakarta.servlet.http.HttpServletRequest
- Specified by:
getQueryString
in interfaceIExtendedRequest
-
getRemoteUser
- Specified by:
getRemoteUser
in interfacejakarta.servlet.http.HttpServletRequest
-
getRequestURI
- Specified by:
getRequestURI
in interfacejakarta.servlet.http.HttpServletRequest
- Specified by:
getRequestURI
in interfaceIExtendedRequest
-
getRequestURL
- Specified by:
getRequestURL
in interfacejakarta.servlet.http.HttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionId
in interfacejakarta.servlet.http.HttpServletRequest
-
getServletPath
- Specified by:
getServletPath
in interfacejakarta.servlet.http.HttpServletRequest
-
getSession
public jakarta.servlet.http.HttpSession getSession()- Specified by:
getSession
in interfacejakarta.servlet.http.HttpServletRequest
-
getSession
public jakarta.servlet.http.HttpSession getSession(boolean arg0) - Specified by:
getSession
in interfacejakarta.servlet.http.HttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookie
in interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURL
in interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()- Specified by:
isRequestedSessionIdFromUrl
in interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValid
in interfacejakarta.servlet.http.HttpServletRequest
-
isUserInRole
- Specified by:
isUserInRole
in interfacejakarta.servlet.http.HttpServletRequest
-
login
- Specified by:
login
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
jakarta.servlet.ServletException
-
logout
public void logout() throws jakarta.servlet.ServletException- Specified by:
logout
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
jakarta.servlet.ServletException
-
getAsyncContext
public jakarta.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContext
in interfaceIExtendedRequest
- Specified by:
getAsyncContext
in interfacejakarta.servlet.ServletRequest
-
getAttribute
- Specified by:
getAttribute
in interfacejakarta.servlet.ServletRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejakarta.servlet.ServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfacejakarta.servlet.ServletRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLength
in interfacejakarta.servlet.ServletRequest
-
getContentType
- Specified by:
getContentType
in interfacejakarta.servlet.ServletRequest
-
getDispatcherType
public jakarta.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherType
in interfacejakarta.servlet.ServletRequest
-
getInputStream
- Specified by:
getInputStream
in interfacejakarta.servlet.ServletRequest
- Throws:
IOException
-
getLocalAddr
- Specified by:
getLocalAddr
in interfacejakarta.servlet.ServletRequest
-
getLocalName
- Specified by:
getLocalName
in interfacejakarta.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPort
in interfacejakarta.servlet.ServletRequest
-
getLocale
- Specified by:
getLocale
in interfacejakarta.servlet.ServletRequest
-
getLocales
- Specified by:
getLocales
in interfacejakarta.servlet.ServletRequest
-
getParameter
- Specified by:
getParameter
in interfacejakarta.servlet.ServletRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfacejakarta.servlet.ServletRequest
-
getParameterNames
- Specified by:
getParameterNames
in interfacejakarta.servlet.ServletRequest
-
getParameterValues
- Specified by:
getParameterValues
in interfacejakarta.servlet.ServletRequest
-
getProtocol
- Specified by:
getProtocol
in interfacejakarta.servlet.ServletRequest
-
getReader
- Specified by:
getReader
in interfacejakarta.servlet.ServletRequest
- Throws:
IOException
-
getRealPath
- Specified by:
getRealPath
in interfacejakarta.servlet.ServletRequest
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfacejakarta.servlet.ServletRequest
-
getRemoteHost
- Specified by:
getRemoteHost
in interfacejakarta.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePort
in interfacejakarta.servlet.ServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejakarta.servlet.ServletRequest
-
getScheme
- Specified by:
getScheme
in interfacejakarta.servlet.ServletRequest
-
getServerName
- Specified by:
getServerName
in interfacejakarta.servlet.ServletRequest
-
getServerPort
public int getServerPort()- Specified by:
getServerPort
in interfacejakarta.servlet.ServletRequest
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacejakarta.servlet.ServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStarted
in interfacejakarta.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupported
in interfacejakarta.servlet.ServletRequest
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfacejakarta.servlet.ServletRequest
-
removeAttribute
- Specified by:
removeAttribute
in interfacejakarta.servlet.ServletRequest
-
setAttribute
- Specified by:
setAttribute
in interfacejakarta.servlet.ServletRequest
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfacejakarta.servlet.ServletRequest
- Throws:
UnsupportedEncodingException
-
startAsync
public jakarta.servlet.AsyncContext startAsync()- Specified by:
startAsync
in interfacejakarta.servlet.ServletRequest
-
startAsync
public jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest arg0, jakarta.servlet.ServletResponse arg1) - Specified by:
startAsync
in interfacejakarta.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 jakarta.servlet.ServletException- Specified by:
finish
in interfaceIExtendedRequest
- Throws:
jakarta.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(jakarta.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
-