Class SavedRequest
- java.lang.Object
-
- org.apache.catalina.authenticator.SavedRequest
-
public final class SavedRequest extends Object
Object that saves the critical information from a request so that form-based authentication can reproduce it once the user has been authenticated.IMPLEMENTATION NOTE - It is assumed that this object is accessed only from the context of a single thread, so no synchronization around internal collection classes is performed.
FIXME - Currently, this object has no mechanism to save or restore the data content of the request, although it does save request parameters so that a POST transaction can be faithfully duplicated.
- Version:
- $Revision: 1.2 $ $Date: 2005/12/08 01:27:28 $
- Author:
- Craig R. McClanahan
-
-
Constructor Summary
Constructors Constructor Description SavedRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCookie(jakarta.servlet.http.Cookie cookie)voidaddHeader(String name, String value)voidaddLocale(Locale locale)voidaddParameter(String name, String[] values)org.glassfish.grizzly.http.util.ByteChunkgetBody()intgetContentLenght()StringgetContentType()Iterator<jakarta.servlet.http.Cookie>getCookies()Iterator<String>getHeaderNames()Iterator<String>getHeaderValues(String name)Iterator<Locale>getLocales()StringgetMethod()Iterator<String>getParameterNames()String[]getParameterValues(String name)StringgetQueryString()StringgetRequestURI()voidsetBody(org.glassfish.grizzly.http.util.ByteChunk body)voidsetContentLength(int contentLength)voidsetContentType(String contentType)voidsetMethod(String method)voidsetQueryString(String queryString)voidsetRequestURI(String requestURI)
-
-
-
Method Detail
-
addCookie
public void addCookie(jakarta.servlet.http.Cookie cookie)
-
getCookies
public Iterator<jakarta.servlet.http.Cookie> getCookies()
-
addLocale
public void addLocale(Locale locale)
-
getMethod
public String getMethod()
-
setMethod
public void setMethod(String method)
-
getQueryString
public String getQueryString()
-
setQueryString
public void setQueryString(String queryString)
-
getRequestURI
public String getRequestURI()
-
setRequestURI
public void setRequestURI(String requestURI)
-
getBody
public org.glassfish.grizzly.http.util.ByteChunk getBody()
-
setBody
public void setBody(org.glassfish.grizzly.http.util.ByteChunk body)
-
getContentType
public String getContentType()
-
setContentType
public void setContentType(String contentType)
-
getContentLenght
public int getContentLenght()
-
setContentLength
public void setContentLength(int contentLength)
-
-