Package com.ibm.websphere.servlet.cache
Interface ServletCacheRequest
- All Superinterfaces:
- javax.servlet.http.HttpServletRequest,- javax.servlet.ServletRequest
public interface ServletCacheRequest
extends javax.servlet.http.HttpServletRequest
This interface is a proxy for the WebSphere request object.
 It has features added to enable caching.
- 
Field SummaryFields inherited from interface javax.servlet.http.HttpServletRequestBASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
- 
Method SummaryModifier and TypeMethodDescriptiongetAttribute(String key) This returns the request attribute with the specified key.This returns a Hashtable containing the request attributes as they were just prior to exectuion of the entry.This returns the FragmentInfo for this entry, which contains the caching metadata for the entry.booleanThis gets the include variable.booleanThis returns true if the page is uncacheablevoidsetAttribute(String key, Object value) This sets the request attribute key-value pair.voidsetGeneratingId(boolean b) This method prepares the javax.servlet.ServletInputStream to be read by the IdGenerator.voidsetUncacheable(boolean value) This sets the page to be uncachebaleMethods inherited from interface javax.servlet.http.HttpServletRequestauthenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logoutMethods inherited from interface javax.servlet.ServletRequestgetAsyncContext, 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, setCharacterEncoding, startAsync, startAsync
- 
Method Details- 
getFragmentInfoFragmentInfo getFragmentInfo()This returns the FragmentInfo for this entry, which contains the caching metadata for the entry.- Returns:
- The caching metadata for this entry.
 
- 
getIncludeboolean getInclude()This gets the include variable.- Returns:
- True indicates that the include call was used to create this fragment. False indicates that the forward call was used.
 
- 
getAttributeTableHashtable getAttributeTable()This returns a Hashtable containing the request attributes as they were just prior to exectuion of the entry. It also creates the Hashtable if it did not already exist.- Returns:
- The hashtable of attributes.
 
- 
getAttributeThis returns the request attribute with the specified key. It overrides the method in the WebSphere request.- Specified by:
- getAttributein interface- javax.servlet.ServletRequest
- Parameters:
- key- The attribute key.
- Returns:
- The attribute value.
 
- 
setAttributeThis sets the request attribute key-value pair. It overrides the method in the WebSphere request.- Specified by:
- setAttributein interface- javax.servlet.ServletRequest
- Parameters:
- key- The attribute key.
- value- The attribute value.
 
- 
setUncacheablevoid setUncacheable(boolean value) This sets the page to be uncachebale- Parameters:
- value- True if the page is to be set as uncacheable
 
- 
isUncacheableboolean isUncacheable()This returns true if the page is uncacheable- Returns:
- True indicates that the fragment is uncacheable and false indicates that the fragment is cacheable.
 
- 
setGeneratingIdvoid setGeneratingId(boolean b) This method prepares the javax.servlet.ServletInputStream to be read by the IdGenerator.Usage example: servletCacheRequest.setGeneratingId(true); InputStream in = servletCacheRequest.getInputStream(); : servletCacheRequest.setGeneratingId(false);- Parameters:
- b- True or false
 
 
-