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
Constructors -
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) booleanauthenticate(jakarta.servlet.http.HttpServletResponse arg0) voiddeserializeInputStreamData(byte[][] input) voiddestroy()voidfinish()voidgetAllCookieValues(String cookieName) Get the values for the cookie specified.jakarta.servlet.AsyncContextgetAttribute(String arg0) intjakarta.servlet.http.Cookie[]byte[]getCookieValueAsBytes(String cookieName) Returns a cookie value as byteslonggetDateHeader(String arg0) jakarta.servlet.DispatcherTypereturns url with encoded session information of the incoming requestgetHeaders(String arg0) jakarta.servlet.ServletInputStreamintgetIntHeader(String arg0) intgetParameter(String arg0) String[]getParameterValues(String arg0) jakarta.servlet.http.PartCollection<jakarta.servlet.http.Part>getParts()getRealPath(String arg0) intjakarta.servlet.RequestDispatchergetRequestDispatcher(String arg0) booleanReturns boolean that indicates if collaborators are running.intjakarta.servlet.ServletContextjakarta.servlet.http.HttpSessionjakarta.servlet.http.HttpSessiongetSession(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 requestvoidbooleanbooleanbooleanbooleanbooleanbooleanbooleanisSecure()booleanisUserInRole(String arg0) voidvoidlogout()voidvoidremoveAttribute(String arg0) voidremoveHeader(String header) voidbyte[][]Serialize the Map object of InputStreamData.voidsetAsyncStarted(boolean b) voidsetAsyncSupported(boolean asyncSupported) voidsetAttribute(String arg0, Object arg1) voidsetCharacterEncoding(String arg0) voidsetDispatcherType(jakarta.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()jakarta.servlet.AsyncContextjakarta.servlet.AsyncContextstartAsync(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:
authenticatein interfacejakarta.servlet.http.HttpServletRequest
-
getAuthType
- Specified by:
getAuthTypein interfacejakarta.servlet.http.HttpServletRequest
-
getContextPath
- Specified by:
getContextPathin interfacejakarta.servlet.http.HttpServletRequest
-
getCookies
public jakarta.servlet.http.Cookie[] getCookies()- Specified by:
getCookiesin interfacejakarta.servlet.http.HttpServletRequest
-
getDateHeader
- Specified by:
getDateHeaderin interfacejakarta.servlet.http.HttpServletRequest
-
getHeader
- Specified by:
getHeaderin interfacejakarta.servlet.http.HttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNamesin interfacejakarta.servlet.http.HttpServletRequest
-
getHeaders
- Specified by:
getHeadersin interfacejakarta.servlet.http.HttpServletRequest
-
getIntHeader
- Specified by:
getIntHeaderin interfacejakarta.servlet.http.HttpServletRequest
-
getMethod
- Specified by:
getMethodin interfacejakarta.servlet.http.HttpServletRequest
-
getPart
- Specified by:
getPartin interfacejakarta.servlet.http.HttpServletRequest
-
getParts
- Specified by:
getPartsin interfacejakarta.servlet.http.HttpServletRequest
-
getPathInfo
- Specified by:
getPathInfoin interfacejakarta.servlet.http.HttpServletRequest- Specified by:
getPathInfoin interfaceIExtendedRequest
-
getPathTranslated
- Specified by:
getPathTranslatedin interfacejakarta.servlet.http.HttpServletRequest
-
getQueryString
- Specified by:
getQueryStringin interfacejakarta.servlet.http.HttpServletRequest- Specified by:
getQueryStringin interfaceIExtendedRequest
-
getRemoteUser
- Specified by:
getRemoteUserin interfacejakarta.servlet.http.HttpServletRequest
-
getRequestURI
- Specified by:
getRequestURIin interfacejakarta.servlet.http.HttpServletRequest- Specified by:
getRequestURIin interfaceIExtendedRequest
-
getRequestURL
- Specified by:
getRequestURLin interfacejakarta.servlet.http.HttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionIdin interfacejakarta.servlet.http.HttpServletRequest
-
getServletPath
- Specified by:
getServletPathin interfacejakarta.servlet.http.HttpServletRequest
-
getSession
public jakarta.servlet.http.HttpSession getSession()- Specified by:
getSessionin interfacejakarta.servlet.http.HttpServletRequest
-
getSession
public jakarta.servlet.http.HttpSession getSession(boolean arg0) - Specified by:
getSessionin interfacejakarta.servlet.http.HttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookiein interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURLin interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()- Specified by:
isRequestedSessionIdFromUrlin interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValidin interfacejakarta.servlet.http.HttpServletRequest
-
isUserInRole
- Specified by:
isUserInRolein interfacejakarta.servlet.http.HttpServletRequest
-
login
- Specified by:
loginin interfacejakarta.servlet.http.HttpServletRequest- Throws:
jakarta.servlet.ServletException
-
logout
public void logout() throws jakarta.servlet.ServletException- Specified by:
logoutin interfacejakarta.servlet.http.HttpServletRequest- Throws:
jakarta.servlet.ServletException
-
getAsyncContext
public jakarta.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContextin interfaceIExtendedRequest- Specified by:
getAsyncContextin interfacejakarta.servlet.ServletRequest
-
getAttribute
- Specified by:
getAttributein interfacejakarta.servlet.ServletRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.servlet.ServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfacejakarta.servlet.ServletRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLengthin interfacejakarta.servlet.ServletRequest
-
getContentType
- Specified by:
getContentTypein interfacejakarta.servlet.ServletRequest
-
getDispatcherType
public jakarta.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherTypein interfacejakarta.servlet.ServletRequest
-
getInputStream
- Specified by:
getInputStreamin interfacejakarta.servlet.ServletRequest- Throws:
IOException
-
getLocalAddr
- Specified by:
getLocalAddrin interfacejakarta.servlet.ServletRequest
-
getLocalName
- Specified by:
getLocalNamein interfacejakarta.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPortin interfacejakarta.servlet.ServletRequest
-
getLocale
- Specified by:
getLocalein interfacejakarta.servlet.ServletRequest
-
getLocales
- Specified by:
getLocalesin interfacejakarta.servlet.ServletRequest
-
getParameter
- Specified by:
getParameterin interfacejakarta.servlet.ServletRequest
-
getParameterMap
- Specified by:
getParameterMapin interfacejakarta.servlet.ServletRequest
-
getParameterNames
- Specified by:
getParameterNamesin interfacejakarta.servlet.ServletRequest
-
getParameterValues
- Specified by:
getParameterValuesin interfacejakarta.servlet.ServletRequest
-
getProtocol
- Specified by:
getProtocolin interfacejakarta.servlet.ServletRequest
-
getReader
- Specified by:
getReaderin interfacejakarta.servlet.ServletRequest- Throws:
IOException
-
getRealPath
- Specified by:
getRealPathin interfacejakarta.servlet.ServletRequest
-
getRemoteAddr
- Specified by:
getRemoteAddrin interfacejakarta.servlet.ServletRequest
-
getRemoteHost
- Specified by:
getRemoteHostin interfacejakarta.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePortin interfacejakarta.servlet.ServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcherin interfacejakarta.servlet.ServletRequest
-
getScheme
- Specified by:
getSchemein interfacejakarta.servlet.ServletRequest
-
getServerName
- Specified by:
getServerNamein interfacejakarta.servlet.ServletRequest
-
getServerPort
public int getServerPort()- Specified by:
getServerPortin interfacejakarta.servlet.ServletRequest
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejakarta.servlet.ServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStartedin interfacejakarta.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupportedin interfacejakarta.servlet.ServletRequest
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfacejakarta.servlet.ServletRequest
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.ServletRequest
-
setAttribute
- Specified by:
setAttributein interfacejakarta.servlet.ServletRequest
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfacejakarta.servlet.ServletRequest- Throws:
UnsupportedEncodingException
-
startAsync
public jakarta.servlet.AsyncContext startAsync()- Specified by:
startAsyncin interfacejakarta.servlet.ServletRequest
-
startAsync
public jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest arg0, jakarta.servlet.ServletResponse arg1) - Specified by:
startAsyncin interfacejakarta.servlet.ServletRequest
-
addParameter
- Specified by:
addParameterin interfaceIExtendedRequest
-
aggregateQueryStringParams
- Specified by:
aggregateQueryStringParamsin interfaceIExtendedRequest
-
attributeAdded
- Specified by:
attributeAddedin interfaceIExtendedRequest
-
attributeRemoved
- Specified by:
attributeRemovedin interfaceIExtendedRequest
-
attributeReplaced
- Specified by:
attributeReplacedin interfaceIExtendedRequest
-
destroy
public void destroy()- Specified by:
destroyin interfaceIExtendedRequest
-
finish
public void finish() throws jakarta.servlet.ServletException- Specified by:
finishin interfaceIExtendedRequest- Throws:
jakarta.servlet.ServletException
-
getAllCookieValues
Description copied from interface:IExtendedRequestGet the values for the cookie specified.- Specified by:
getAllCookieValuesin interfaceIExtendedRequest- Returns:
- List of values associated with this cookie name.
-
getCookieValueAsBytes
Description copied from interface:IExtendedRequestReturns a cookie value as bytes- Specified by:
getCookieValueAsBytesin interfaceIExtendedRequest
-
getEncodedRequestURI
Description copied from interface:IExtendedRequestreturns url with encoded session information of the incoming request- Specified by:
getEncodedRequestURIin interfaceIExtendedRequest
-
getIRequest
- Specified by:
getIRequestin interfaceIExtendedRequest
-
getReaderEncoding
- Specified by:
getReaderEncodingin interfaceIExtendedRequest
-
getResponse
- Specified by:
getResponsein interfaceIExtendedRequest
-
getRunningCollaborators
public boolean getRunningCollaborators()Description copied from interface:IExtendedRequestReturns boolean that indicates if collaborators are running. Used by session manager when session security integration is enabled.- Specified by:
getRunningCollaboratorsin interfaceIExtendedRequest
-
getSSLId
public byte[] getSSLId()Description copied from interface:IExtendedRequestReturns incoming SSL session id of the request. Applicable only for requests over ssl- Specified by:
getSSLIdin interfaceIExtendedRequest
-
getSessionAffinityContext
Description copied from interface:IExtendedRequestGet the SessionAffinityContext for this request- Specified by:
getSessionAffinityContextin interfaceIExtendedRequest- Returns:
- SessionAffinityContext object
-
getUpdatedSessionId
Description copied from interface:IExtendedRequestreturns sessionId that is being generated for this request- Specified by:
getUpdatedSessionIdin interfaceIExtendedRequest
-
getWebAppDispatcherContext
- Specified by:
getWebAppDispatcherContextin interfaceIExtendedRequest
-
initForNextRequest
- Specified by:
initForNextRequestin interfaceIExtendedRequest
-
pushParameterStack
public void pushParameterStack()- Specified by:
pushParameterStackin interfaceIExtendedRequest
-
removeHeader
- Specified by:
removeHeaderin interfaceIExtendedRequest
-
removeQSFromList
public void removeQSFromList()- Specified by:
removeQSFromListin interfaceIExtendedRequest
-
setMethod
- Specified by:
setMethodin interfaceIExtendedRequest
-
setQueryString
- Specified by:
setQueryStringin interfaceIExtendedRequest
-
setResponse
- Specified by:
setResponsein interfaceIExtendedRequest
-
setRunningCollaborators
public void setRunningCollaborators(boolean runningCollaborators) Description copied from interface:IExtendedRequestSets boolean used to indicate to session manager if collaborators are running.- Specified by:
setRunningCollaboratorsin interfaceIExtendedRequest
-
setSessionAffinityContext
Description copied from interface:IExtendedRequestSets SessionAffinityContext for this request- Specified by:
setSessionAffinityContextin interfaceIExtendedRequest
-
setSessionId
Description copied from interface:IExtendedRequestSets sessionId that is being generated for this request- Specified by:
setSessionIdin interfaceIExtendedRequest
-
setWebAppDispatcherContext
- Specified by:
setWebAppDispatcherContextin interfaceIExtendedRequest
-
start
public void start()- Specified by:
startin interfaceIExtendedRequest
-
closeResponseOutput
public void closeResponseOutput()- Specified by:
closeResponseOutputin interfaceIExtendedRequest
-
finishAndDestroyConnectionContext
public void finishAndDestroyConnectionContext()- Specified by:
finishAndDestroyConnectionContextin interfaceIExtendedRequest
-
setAsyncSupported
public void setAsyncSupported(boolean asyncSupported) - Specified by:
setAsyncSupportedin interfaceIExtendedRequest
-
setDispatcherType
public void setDispatcherType(jakarta.servlet.DispatcherType dispatcherType) - Specified by:
setDispatcherTypein interfaceIExtendedRequest
-
setAsyncStarted
public void setAsyncStarted(boolean b) - Specified by:
setAsyncStartedin interfaceIExtendedRequest
-
getInputStreamData
- Specified by:
getInputStreamDatain interfaceIExtendedRequest- Throws:
IOException
-
setInputStreamData
- Specified by:
setInputStreamDatain interfaceIExtendedRequest- Throws:
IOException
-
serializeInputStreamData
public byte[][] serializeInputStreamData(Map isd) throws IOException, UnsupportedEncodingException, IllegalStateException Description copied from interface:IExtendedRequestSerialize 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:
serializeInputStreamDatain interfaceIExtendedRequest- Throws:
IOExceptionUnsupportedEncodingExceptionIllegalStateException
-
deserializeInputStreamData
public HashMap deserializeInputStreamData(byte[][] input) throws UnsupportedEncodingException, IllegalStateException - Specified by:
deserializeInputStreamDatain interfaceIExtendedRequest- Throws:
UnsupportedEncodingExceptionIllegalStateException
-
sizeInputStreamData
Description copied from interface:IExtendedRequestreturns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.- Specified by:
sizeInputStreamDatain interfaceIExtendedRequest- Throws:
UnsupportedEncodingExceptionIllegalStateException
-
setValuesIfMultiReadofPostdataEnabled
public void setValuesIfMultiReadofPostdataEnabled()- Specified by:
setValuesIfMultiReadofPostdataEnabledin interfaceIExtendedRequest
-