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 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(javax.servlet.http.HttpServletResponse arg0) voiddeserializeInputStreamData(byte[][] input) voiddestroy()voidfinish()voidgetAllCookieValues(String cookieName) Get the values for the cookie specified.javax.servlet.AsyncContextgetAttribute(String arg0) intjavax.servlet.http.Cookie[]byte[]getCookieValueAsBytes(String cookieName) Returns a cookie value as byteslonggetDateHeader(String arg0) javax.servlet.DispatcherTypereturns url with encoded session information of the incoming requestgetHeaders(String arg0) javax.servlet.ServletInputStreamgetInputStreamData(long maxAllowedLength) intgetIntHeader(String arg0) intgetParameter(String arg0) String[]getParameterValues(String arg0) javax.servlet.http.PartCollection<javax.servlet.http.Part>getParts()getRealPath(String arg0) intjavax.servlet.RequestDispatchergetRequestDispatcher(String arg0) booleanReturns boolean that indicates if collaborators are running.intjavax.servlet.ServletContextjavax.servlet.http.HttpSessionjavax.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(javax.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()javax.servlet.AsyncContextjavax.servlet.AsyncContextstartAsync(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:
authenticatein interfacejavax.servlet.http.HttpServletRequest
-
getAuthType
- Specified by:
getAuthTypein interfacejavax.servlet.http.HttpServletRequest
-
getContextPath
- Specified by:
getContextPathin interfacejavax.servlet.http.HttpServletRequest
-
getCookies
public javax.servlet.http.Cookie[] getCookies()- Specified by:
getCookiesin interfacejavax.servlet.http.HttpServletRequest
-
getDateHeader
- Specified by:
getDateHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeader
- Specified by:
getHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNamesin interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
- Specified by:
getHeadersin interfacejavax.servlet.http.HttpServletRequest
-
getIntHeader
- Specified by:
getIntHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getMethod
- Specified by:
getMethodin interfacejavax.servlet.http.HttpServletRequest
-
getPart
- Specified by:
getPartin interfacejavax.servlet.http.HttpServletRequest
-
getParts
- Specified by:
getPartsin interfacejavax.servlet.http.HttpServletRequest
-
getPathInfo
- Specified by:
getPathInfoin interfacejavax.servlet.http.HttpServletRequest- Specified by:
getPathInfoin interfaceIExtendedRequest
-
getPathTranslated
- Specified by:
getPathTranslatedin interfacejavax.servlet.http.HttpServletRequest
-
getQueryString
- Specified by:
getQueryStringin interfacejavax.servlet.http.HttpServletRequest- Specified by:
getQueryStringin interfaceIExtendedRequest
-
getRemoteUser
- Specified by:
getRemoteUserin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
- Specified by:
getRequestURIin interfacejavax.servlet.http.HttpServletRequest- Specified by:
getRequestURIin interfaceIExtendedRequest
-
getRequestURL
- Specified by:
getRequestURLin interfacejavax.servlet.http.HttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionIdin interfacejavax.servlet.http.HttpServletRequest
-
getServletPath
- Specified by:
getServletPathin interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession()- Specified by:
getSessionin interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession(boolean arg0) - Specified by:
getSessionin interfacejavax.servlet.http.HttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookiein interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURLin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()- Specified by:
isRequestedSessionIdFromUrlin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValidin interfacejavax.servlet.http.HttpServletRequest
-
isUserInRole
- Specified by:
isUserInRolein interfacejavax.servlet.http.HttpServletRequest
-
login
- Specified by:
loginin interfacejavax.servlet.http.HttpServletRequest- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletException- Specified by:
logoutin interfacejavax.servlet.http.HttpServletRequest- Throws:
javax.servlet.ServletException
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContextin interfaceIExtendedRequest- Specified by:
getAsyncContextin interfacejavax.servlet.ServletRequest
-
getAttribute
- Specified by:
getAttributein interfacejavax.servlet.ServletRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejavax.servlet.ServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfacejavax.servlet.ServletRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLengthin interfacejavax.servlet.ServletRequest
-
getContentType
- Specified by:
getContentTypein interfacejavax.servlet.ServletRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherTypein interfacejavax.servlet.ServletRequest
-
getInputStream
- Specified by:
getInputStreamin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getLocalAddr
- Specified by:
getLocalAddrin interfacejavax.servlet.ServletRequest
-
getLocalName
- Specified by:
getLocalNamein interfacejavax.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPortin interfacejavax.servlet.ServletRequest
-
getLocale
- Specified by:
getLocalein interfacejavax.servlet.ServletRequest
-
getLocales
- Specified by:
getLocalesin interfacejavax.servlet.ServletRequest
-
getParameter
- Specified by:
getParameterin interfacejavax.servlet.ServletRequest
-
getParameterMap
- Specified by:
getParameterMapin interfacejavax.servlet.ServletRequest
-
getParameterNames
- Specified by:
getParameterNamesin interfacejavax.servlet.ServletRequest
-
getParameterValues
- Specified by:
getParameterValuesin interfacejavax.servlet.ServletRequest
-
getProtocol
- Specified by:
getProtocolin interfacejavax.servlet.ServletRequest
-
getReader
- Specified by:
getReaderin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getRealPath
- Specified by:
getRealPathin interfacejavax.servlet.ServletRequest
-
getRemoteAddr
- Specified by:
getRemoteAddrin interfacejavax.servlet.ServletRequest
-
getRemoteHost
- Specified by:
getRemoteHostin interfacejavax.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePortin interfacejavax.servlet.ServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcherin interfacejavax.servlet.ServletRequest
-
getScheme
- Specified by:
getSchemein interfacejavax.servlet.ServletRequest
-
getServerName
- Specified by:
getServerNamein interfacejavax.servlet.ServletRequest
-
getServerPort
public int getServerPort()- Specified by:
getServerPortin interfacejavax.servlet.ServletRequest
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejavax.servlet.ServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStartedin interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupportedin interfacejavax.servlet.ServletRequest
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfacejavax.servlet.ServletRequest
-
removeAttribute
- Specified by:
removeAttributein interfacejavax.servlet.ServletRequest
-
setAttribute
- Specified by:
setAttributein interfacejavax.servlet.ServletRequest
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfacejavax.servlet.ServletRequest- Throws:
UnsupportedEncodingException
-
startAsync
public javax.servlet.AsyncContext startAsync()- Specified by:
startAsyncin interfacejavax.servlet.ServletRequest
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1) - Specified by:
startAsyncin interfacejavax.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 javax.servlet.ServletException- Specified by:
finishin interfaceIExtendedRequest- Throws:
javax.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(javax.servlet.DispatcherType dispatcherType) - Specified by:
setDispatcherTypein interfaceIExtendedRequest
-
setAsyncStarted
public void setAsyncStarted(boolean b) - Specified by:
setAsyncStartedin interfaceIExtendedRequest
-
getInputStreamData
- Specified by:
getInputStreamDatain interfaceIExtendedRequest- Throws:
IOException
-
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
-