Interface IExtendedRequest
- 
- All Superinterfaces:
- javax.servlet.http.HttpServletRequest,- javax.servlet.ServletRequest
 - All Known Implementing Classes:
- DummyRequest
 
 public interface IExtendedRequest extends javax.servlet.http.HttpServletRequestIExtendedRequest is an spi for websphere additions to the standard ServletRequest methods- Since:
- WAS7.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddParameter(java.lang.String name, java.lang.String[] values)voidaggregateQueryStringParams(java.lang.String additionalQueryString, boolean setQS)voidattributeAdded(java.lang.String key, java.lang.Object newVal)voidattributeRemoved(java.lang.String key, java.lang.Object oldVal)voidattributeReplaced(java.lang.String key, java.lang.Object oldVal)voidcloseResponseOutput()java.util.HashMapdeserializeInputStreamData(byte[][] input)voiddestroy()voidfinish()voidfinishAndDestroyConnectionContext()java.util.ListgetAllCookieValues(java.lang.String cookieName)Get the values for the cookie specified.javax.servlet.AsyncContextgetAsyncContext()byte[]getCookieValueAsBytes(java.lang.String cookieName)Returns a cookie value as bytesjava.lang.StringgetEncodedRequestURI()returns url with encoded session information of the incoming requestjava.util.HashMapgetInputStreamData()IRequestgetIRequest()java.lang.StringgetPathInfo()java.lang.StringgetQueryString()java.lang.StringgetReaderEncoding()java.lang.StringgetRequestURI()IExtendedResponsegetResponse()booleangetRunningCollaborators()Returns boolean that indicates if collaborators are running.java.lang.ObjectgetSessionAffinityContext()Get the SessionAffinityContext for this requestbyte[]getSSLId()Returns incoming SSL session id of the request.java.lang.StringgetUpdatedSessionId()returns sessionId that is being generated for this requestIWebAppDispatcherContextgetWebAppDispatcherContext()voidinitForNextRequest(IRequest req)voidpushParameterStack()voidremoveHeader(java.lang.String header)voidremoveQSFromList()byte[][]serializeInputStreamData(java.util.Map isd)Serialize the Map object of InputStreamData.voidsetAsyncStarted(boolean b)voidsetAsyncSupported(boolean asyncSupported)voidsetDispatcherType(javax.servlet.DispatcherType dispatcherType)voidsetInputStreamData(java.util.HashMap inStreamInfo)voidsetMethod(java.lang.String method)voidsetQueryString(java.lang.String qs)voidsetResponse(IExtendedResponse extResp)voidsetRunningCollaborators(boolean runningCollaborators)Sets boolean used to indicate to session manager if collaborators are running.voidsetSessionAffinityContext(java.lang.Object sac)Sets SessionAffinityContext for this requestvoidsetSessionId(java.lang.String id)Sets sessionId that is being generated for this requestvoidsetValuesIfMultiReadofPostdataEnabled()voidsetWebAppDispatcherContext(IWebAppDispatcherContext ctx)longsizeInputStreamData(java.util.Map isd)returns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.voidstart()- 
Methods inherited from interface javax.servlet.http.HttpServletRequestauthenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getRemoteUser, getRequestedSessionId, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
 - 
Methods inherited from interface javax.servlet.ServletRequestgetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
 
- 
 
- 
- 
- 
Method Detail- 
getSSLIdbyte[] getSSLId() Returns incoming SSL session id of the request. Applicable only for requests over ssl
 - 
getCookieValueAsBytesbyte[] getCookieValueAsBytes(java.lang.String cookieName) Returns a cookie value as bytes
 - 
getAllCookieValuesjava.util.List getAllCookieValues(java.lang.String cookieName) Get the values for the cookie specified.- Parameters:
- name- the cookie name
- Returns:
- List of values associated with this cookie name.
 
 - 
setSessionIdvoid setSessionId(java.lang.String id) Sets sessionId that is being generated for this request
 - 
getUpdatedSessionIdjava.lang.String getUpdatedSessionId() returns sessionId that is being generated for this request
 - 
setSessionAffinityContextvoid setSessionAffinityContext(java.lang.Object sac) Sets SessionAffinityContext for this request- Parameters:
- SessionAffinityContext- object
 
 - 
getSessionAffinityContextjava.lang.Object getSessionAffinityContext() Get the SessionAffinityContext for this request- Returns:
- SessionAffinityContext object
 
 - 
getEncodedRequestURIjava.lang.String getEncodedRequestURI() returns url with encoded session information of the incoming request
 - 
pushParameterStackvoid pushParameterStack() 
 - 
aggregateQueryStringParamsvoid aggregateQueryStringParams(java.lang.String additionalQueryString, boolean setQS)
 - 
removeQSFromListvoid removeQSFromList() 
 - 
getQueryStringjava.lang.String getQueryString() - Specified by:
- getQueryStringin interface- javax.servlet.http.HttpServletRequest
- Returns:
 
 - 
setQueryStringvoid setQueryString(java.lang.String qs) 
 - 
setRunningCollaboratorsvoid setRunningCollaborators(boolean runningCollaborators) Sets boolean used to indicate to session manager if collaborators are running.
 - 
getRunningCollaboratorsboolean getRunningCollaborators() Returns boolean that indicates if collaborators are running. Used by session manager when session security integration is enabled.
 - 
getReaderEncodingjava.lang.String getReaderEncoding() 
 - 
getIRequestIRequest getIRequest() 
 - 
attributeAddedvoid attributeAdded(java.lang.String key, java.lang.Object newVal)
 - 
attributeRemovedvoid attributeRemoved(java.lang.String key, java.lang.Object oldVal)
 - 
attributeReplacedvoid attributeReplaced(java.lang.String key, java.lang.Object oldVal)
 - 
addParametervoid addParameter(java.lang.String name, java.lang.String[] values)
 - 
setMethodvoid setMethod(java.lang.String method) 
 - 
setWebAppDispatcherContextvoid setWebAppDispatcherContext(IWebAppDispatcherContext ctx) 
 - 
getWebAppDispatcherContextIWebAppDispatcherContext getWebAppDispatcherContext() 
 - 
getResponseIExtendedResponse getResponse() 
 - 
setResponsevoid setResponse(IExtendedResponse extResp) 
 - 
initForNextRequestvoid initForNextRequest(IRequest req) 
 - 
startvoid start() 
 - 
finishvoid finish() throws javax.servlet.ServletException- Throws:
- javax.servlet.ServletException
 
 - 
destroyvoid destroy() 
 - 
getPathInfojava.lang.String getPathInfo() - Specified by:
- getPathInfoin interface- javax.servlet.http.HttpServletRequest
 
 - 
getRequestURIjava.lang.String getRequestURI() - Specified by:
- getRequestURIin interface- javax.servlet.http.HttpServletRequest
 
 - 
removeHeadervoid removeHeader(java.lang.String header) 
 - 
getAsyncContextjavax.servlet.AsyncContext getAsyncContext() - Specified by:
- getAsyncContextin interface- javax.servlet.ServletRequest
 
 - 
closeResponseOutputvoid closeResponseOutput() 
 - 
setAsyncSupportedvoid setAsyncSupported(boolean asyncSupported) 
 - 
finishAndDestroyConnectionContextvoid finishAndDestroyConnectionContext() 
 - 
setDispatcherTypevoid setDispatcherType(javax.servlet.DispatcherType dispatcherType) 
 - 
setAsyncStartedvoid setAsyncStarted(boolean b) 
 - 
getInputStreamDatajava.util.HashMap getInputStreamData() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
setInputStreamDatavoid setInputStreamData(java.util.HashMap inStreamInfo) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
serializeInputStreamDatabyte[][] serializeInputStreamData(java.util.Map isd) throws java.io.IOException, java.io.UnsupportedEncodingException, java.lang.IllegalStateExceptionSerialize 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.- Throws:
- java.io.IOException
- java.io.UnsupportedEncodingException
- java.lang.IllegalStateException
 
 - 
deserializeInputStreamDatajava.util.HashMap deserializeInputStreamData(byte[][] input) throws java.io.UnsupportedEncodingException, java.lang.IllegalStateException- Throws:
- java.io.UnsupportedEncodingException
- java.lang.IllegalStateException
 
 - 
sizeInputStreamDatalong sizeInputStreamData(java.util.Map isd) throws java.io.UnsupportedEncodingException, java.lang.IllegalStateExceptionreturns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.- Throws:
- java.io.UnsupportedEncodingException
- java.lang.IllegalStateException
 
 - 
setValuesIfMultiReadofPostdataEnabledvoid setValuesIfMultiReadofPostdataEnabled() 
 
- 
 
-