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 SummaryFields inherited from interface javax.servlet.http.HttpServletRequestBASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ServletInputStreamintgetIntHeader(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- 
DummyRequestpublic DummyRequest()
 
- 
- 
Method Details- 
authenticatepublic boolean authenticate(javax.servlet.http.HttpServletResponse arg0) - Specified by:
- authenticatein interface- javax.servlet.http.HttpServletRequest
 
- 
getAuthType- Specified by:
- getAuthTypein interface- javax.servlet.http.HttpServletRequest
 
- 
getContextPath- Specified by:
- getContextPathin interface- javax.servlet.http.HttpServletRequest
 
- 
getCookiespublic javax.servlet.http.Cookie[] getCookies()- Specified by:
- getCookiesin interface- javax.servlet.http.HttpServletRequest
 
- 
getDateHeader- Specified by:
- getDateHeaderin interface- javax.servlet.http.HttpServletRequest
 
- 
getHeader- Specified by:
- getHeaderin interface- javax.servlet.http.HttpServletRequest
 
- 
getHeaderNames- Specified by:
- getHeaderNamesin interface- javax.servlet.http.HttpServletRequest
 
- 
getHeaders- Specified by:
- getHeadersin interface- javax.servlet.http.HttpServletRequest
 
- 
getIntHeader- Specified by:
- getIntHeaderin interface- javax.servlet.http.HttpServletRequest
 
- 
getMethod- Specified by:
- getMethodin interface- javax.servlet.http.HttpServletRequest
 
- 
getPart- Specified by:
- getPartin interface- javax.servlet.http.HttpServletRequest
 
- 
getParts- Specified by:
- getPartsin interface- javax.servlet.http.HttpServletRequest
 
- 
getPathInfo- Specified by:
- getPathInfoin interface- javax.servlet.http.HttpServletRequest
- Specified by:
- getPathInfoin interface- IExtendedRequest
 
- 
getPathTranslated- Specified by:
- getPathTranslatedin interface- javax.servlet.http.HttpServletRequest
 
- 
getQueryString- Specified by:
- getQueryStringin interface- javax.servlet.http.HttpServletRequest
- Specified by:
- getQueryStringin interface- IExtendedRequest
 
- 
getRemoteUser- Specified by:
- getRemoteUserin interface- javax.servlet.http.HttpServletRequest
 
- 
getRequestURI- Specified by:
- getRequestURIin interface- javax.servlet.http.HttpServletRequest
- Specified by:
- getRequestURIin interface- IExtendedRequest
 
- 
getRequestURL- Specified by:
- getRequestURLin interface- javax.servlet.http.HttpServletRequest
 
- 
getRequestedSessionId- Specified by:
- getRequestedSessionIdin interface- javax.servlet.http.HttpServletRequest
 
- 
getServletPath- Specified by:
- getServletPathin interface- javax.servlet.http.HttpServletRequest
 
- 
getSessionpublic javax.servlet.http.HttpSession getSession()- Specified by:
- getSessionin interface- javax.servlet.http.HttpServletRequest
 
- 
getSessionpublic javax.servlet.http.HttpSession getSession(boolean arg0) - Specified by:
- getSessionin interface- javax.servlet.http.HttpServletRequest
 
- 
getUserPrincipal- Specified by:
- getUserPrincipalin interface- javax.servlet.http.HttpServletRequest
 
- 
isRequestedSessionIdFromCookiepublic boolean isRequestedSessionIdFromCookie()- Specified by:
- isRequestedSessionIdFromCookiein interface- javax.servlet.http.HttpServletRequest
 
- 
isRequestedSessionIdFromURLpublic boolean isRequestedSessionIdFromURL()- Specified by:
- isRequestedSessionIdFromURLin interface- javax.servlet.http.HttpServletRequest
 
- 
isRequestedSessionIdFromUrlpublic boolean isRequestedSessionIdFromUrl()- Specified by:
- isRequestedSessionIdFromUrlin interface- javax.servlet.http.HttpServletRequest
 
- 
isRequestedSessionIdValidpublic boolean isRequestedSessionIdValid()- Specified by:
- isRequestedSessionIdValidin interface- javax.servlet.http.HttpServletRequest
 
- 
isUserInRole- Specified by:
- isUserInRolein interface- javax.servlet.http.HttpServletRequest
 
- 
login- Specified by:
- loginin interface- javax.servlet.http.HttpServletRequest
- Throws:
- javax.servlet.ServletException
 
- 
logoutpublic void logout() throws javax.servlet.ServletException- Specified by:
- logoutin interface- javax.servlet.http.HttpServletRequest
- Throws:
- javax.servlet.ServletException
 
- 
getAsyncContextpublic javax.servlet.AsyncContext getAsyncContext()- Specified by:
- getAsyncContextin interface- IExtendedRequest
- Specified by:
- getAsyncContextin interface- javax.servlet.ServletRequest
 
- 
getAttribute- Specified by:
- getAttributein interface- javax.servlet.ServletRequest
 
- 
getAttributeNames- Specified by:
- getAttributeNamesin interface- javax.servlet.ServletRequest
 
- 
getCharacterEncoding- Specified by:
- getCharacterEncodingin interface- javax.servlet.ServletRequest
 
- 
getContentLengthpublic int getContentLength()- Specified by:
- getContentLengthin interface- javax.servlet.ServletRequest
 
- 
getContentType- Specified by:
- getContentTypein interface- javax.servlet.ServletRequest
 
- 
getDispatcherTypepublic javax.servlet.DispatcherType getDispatcherType()- Specified by:
- getDispatcherTypein interface- javax.servlet.ServletRequest
 
- 
getInputStream- Specified by:
- getInputStreamin interface- javax.servlet.ServletRequest
- Throws:
- IOException
 
- 
getLocalAddr- Specified by:
- getLocalAddrin interface- javax.servlet.ServletRequest
 
- 
getLocalName- Specified by:
- getLocalNamein interface- javax.servlet.ServletRequest
 
- 
getLocalPortpublic int getLocalPort()- Specified by:
- getLocalPortin interface- javax.servlet.ServletRequest
 
- 
getLocale- Specified by:
- getLocalein interface- javax.servlet.ServletRequest
 
- 
getLocales- Specified by:
- getLocalesin interface- javax.servlet.ServletRequest
 
- 
getParameter- Specified by:
- getParameterin interface- javax.servlet.ServletRequest
 
- 
getParameterMap- Specified by:
- getParameterMapin interface- javax.servlet.ServletRequest
 
- 
getParameterNames- Specified by:
- getParameterNamesin interface- javax.servlet.ServletRequest
 
- 
getParameterValues- Specified by:
- getParameterValuesin interface- javax.servlet.ServletRequest
 
- 
getProtocol- Specified by:
- getProtocolin interface- javax.servlet.ServletRequest
 
- 
getReader- Specified by:
- getReaderin interface- javax.servlet.ServletRequest
- Throws:
- IOException
 
- 
getRealPath- Specified by:
- getRealPathin interface- javax.servlet.ServletRequest
 
- 
getRemoteAddr- Specified by:
- getRemoteAddrin interface- javax.servlet.ServletRequest
 
- 
getRemoteHost- Specified by:
- getRemoteHostin interface- javax.servlet.ServletRequest
 
- 
getRemotePortpublic int getRemotePort()- Specified by:
- getRemotePortin interface- javax.servlet.ServletRequest
 
- 
getRequestDispatcher- Specified by:
- getRequestDispatcherin interface- javax.servlet.ServletRequest
 
- 
getScheme- Specified by:
- getSchemein interface- javax.servlet.ServletRequest
 
- 
getServerName- Specified by:
- getServerNamein interface- javax.servlet.ServletRequest
 
- 
getServerPortpublic int getServerPort()- Specified by:
- getServerPortin interface- javax.servlet.ServletRequest
 
- 
getServletContextpublic javax.servlet.ServletContext getServletContext()- Specified by:
- getServletContextin interface- javax.servlet.ServletRequest
 
- 
isAsyncStartedpublic boolean isAsyncStarted()- Specified by:
- isAsyncStartedin interface- javax.servlet.ServletRequest
 
- 
isAsyncSupportedpublic boolean isAsyncSupported()- Specified by:
- isAsyncSupportedin interface- javax.servlet.ServletRequest
 
- 
isSecurepublic boolean isSecure()- Specified by:
- isSecurein interface- javax.servlet.ServletRequest
 
- 
removeAttribute- Specified by:
- removeAttributein interface- javax.servlet.ServletRequest
 
- 
setAttribute- Specified by:
- setAttributein interface- javax.servlet.ServletRequest
 
- 
setCharacterEncoding- Specified by:
- setCharacterEncodingin interface- javax.servlet.ServletRequest
- Throws:
- UnsupportedEncodingException
 
- 
startAsyncpublic javax.servlet.AsyncContext startAsync()- Specified by:
- startAsyncin interface- javax.servlet.ServletRequest
 
- 
startAsyncpublic javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1) - Specified by:
- startAsyncin interface- javax.servlet.ServletRequest
 
- 
addParameter- Specified by:
- addParameterin interface- IExtendedRequest
 
- 
aggregateQueryStringParams- Specified by:
- aggregateQueryStringParamsin interface- IExtendedRequest
 
- 
attributeAdded- Specified by:
- attributeAddedin interface- IExtendedRequest
 
- 
attributeRemoved- Specified by:
- attributeRemovedin interface- IExtendedRequest
 
- 
attributeReplaced- Specified by:
- attributeReplacedin interface- IExtendedRequest
 
- 
destroypublic void destroy()- Specified by:
- destroyin interface- IExtendedRequest
 
- 
finishpublic void finish() throws javax.servlet.ServletException- Specified by:
- finishin interface- IExtendedRequest
- Throws:
- javax.servlet.ServletException
 
- 
getAllCookieValuesDescription copied from interface:IExtendedRequestGet the values for the cookie specified.- Specified by:
- getAllCookieValuesin interface- IExtendedRequest
- Returns:
- List of values associated with this cookie name.
 
- 
getCookieValueAsBytesDescription copied from interface:IExtendedRequestReturns a cookie value as bytes- Specified by:
- getCookieValueAsBytesin interface- IExtendedRequest
 
- 
getEncodedRequestURIDescription copied from interface:IExtendedRequestreturns url with encoded session information of the incoming request- Specified by:
- getEncodedRequestURIin interface- IExtendedRequest
 
- 
getIRequest- Specified by:
- getIRequestin interface- IExtendedRequest
 
- 
getReaderEncoding- Specified by:
- getReaderEncodingin interface- IExtendedRequest
 
- 
getResponse- Specified by:
- getResponsein interface- IExtendedRequest
 
- 
getRunningCollaboratorspublic 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 interface- IExtendedRequest
 
- 
getSSLIdpublic byte[] getSSLId()Description copied from interface:IExtendedRequestReturns incoming SSL session id of the request. Applicable only for requests over ssl- Specified by:
- getSSLIdin interface- IExtendedRequest
 
- 
getSessionAffinityContextDescription copied from interface:IExtendedRequestGet the SessionAffinityContext for this request- Specified by:
- getSessionAffinityContextin interface- IExtendedRequest
- Returns:
- SessionAffinityContext object
 
- 
getUpdatedSessionIdDescription copied from interface:IExtendedRequestreturns sessionId that is being generated for this request- Specified by:
- getUpdatedSessionIdin interface- IExtendedRequest
 
- 
getWebAppDispatcherContext- Specified by:
- getWebAppDispatcherContextin interface- IExtendedRequest
 
- 
initForNextRequest- Specified by:
- initForNextRequestin interface- IExtendedRequest
 
- 
pushParameterStackpublic void pushParameterStack()- Specified by:
- pushParameterStackin interface- IExtendedRequest
 
- 
removeHeader- Specified by:
- removeHeaderin interface- IExtendedRequest
 
- 
removeQSFromListpublic void removeQSFromList()- Specified by:
- removeQSFromListin interface- IExtendedRequest
 
- 
setMethod- Specified by:
- setMethodin interface- IExtendedRequest
 
- 
setQueryString- Specified by:
- setQueryStringin interface- IExtendedRequest
 
- 
setResponse- Specified by:
- setResponsein interface- IExtendedRequest
 
- 
setRunningCollaboratorspublic void setRunningCollaborators(boolean runningCollaborators) Description copied from interface:IExtendedRequestSets boolean used to indicate to session manager if collaborators are running.- Specified by:
- setRunningCollaboratorsin interface- IExtendedRequest
 
- 
setSessionAffinityContextDescription copied from interface:IExtendedRequestSets SessionAffinityContext for this request- Specified by:
- setSessionAffinityContextin interface- IExtendedRequest
 
- 
setSessionIdDescription copied from interface:IExtendedRequestSets sessionId that is being generated for this request- Specified by:
- setSessionIdin interface- IExtendedRequest
 
- 
setWebAppDispatcherContext- Specified by:
- setWebAppDispatcherContextin interface- IExtendedRequest
 
- 
startpublic void start()- Specified by:
- startin interface- IExtendedRequest
 
- 
closeResponseOutputpublic void closeResponseOutput()- Specified by:
- closeResponseOutputin interface- IExtendedRequest
 
- 
finishAndDestroyConnectionContextpublic void finishAndDestroyConnectionContext()- Specified by:
- finishAndDestroyConnectionContextin interface- IExtendedRequest
 
- 
setAsyncSupportedpublic void setAsyncSupported(boolean asyncSupported) - Specified by:
- setAsyncSupportedin interface- IExtendedRequest
 
- 
setDispatcherTypepublic void setDispatcherType(javax.servlet.DispatcherType dispatcherType) - Specified by:
- setDispatcherTypein interface- IExtendedRequest
 
- 
setAsyncStartedpublic void setAsyncStarted(boolean b) - Specified by:
- setAsyncStartedin interface- IExtendedRequest
 
- 
getInputStreamData- Specified by:
- getInputStreamDatain interface- IExtendedRequest
- Throws:
- IOException
 
- 
setInputStreamData- Specified by:
- setInputStreamDatain interface- IExtendedRequest
- Throws:
- IOException
 
- 
serializeInputStreamDatapublic 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 interface- IExtendedRequest
- Throws:
- IOException
- UnsupportedEncodingException
- IllegalStateException
 
- 
deserializeInputStreamDatapublic HashMap deserializeInputStreamData(byte[][] input) throws UnsupportedEncodingException, IllegalStateException - Specified by:
- deserializeInputStreamDatain interface- IExtendedRequest
- Throws:
- UnsupportedEncodingException
- IllegalStateException
 
- 
sizeInputStreamDataDescription copied from interface:IExtendedRequestreturns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.- Specified by:
- sizeInputStreamDatain interface- IExtendedRequest
- Throws:
- UnsupportedEncodingException
- IllegalStateException
 
- 
setValuesIfMultiReadofPostdataEnabledpublic void setValuesIfMultiReadofPostdataEnabled()- Specified by:
- setValuesIfMultiReadofPostdataEnabledin interface- IExtendedRequest
 
 
-