Top Description Fields Constructors Methods
org.apache.catalina.authenticator

public final Class SavedRequest

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayList, .Collections, .HashMap, .Iterator, .List, .Locale, .Map, jakarta.servlet.http.Cookie, org.apache.tomcat.util.buf.ByteChunk

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.

Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
private ByteChunk
body

The body of this request.

private String
contentType

The content type of the request, used if this is a POST.

private final List<Cookie>
cookies

The set of Cookies associated with this Request.

private String
decodedRequestURI

The decode request URI associated with this Request.

private final Map<String, List<String>>
headers

The set of Headers associated with this Request.

private final List<Locale>
locales

The set of Locales associated with this Request.

private String
method

The request method used on this Request.

private int
originalMaxInactiveInterval

The original maxInactiveInterval for the session.

private String
queryString

The query string associated with this Request.

private String
requestURI

The request URI associated with this Request.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addCookie(Cookie cookie)

public void
addHeader(String name, String value)

public void
addLocale(Locale locale)

public ByteChunk
public String
public Iterator<Cookie>
public String
public Iterator<String>
public Iterator<String>
public Iterator<Locale>
public String
public int
public String
public String
public void
public void
setContentType(String contentType)

public void
setDecodedRequestURI(String decodedRequestURI)

public void
setMethod(String method)

public void
setOriginalMaxInactiveInterval(int originalMaxInactiveInterval)

public void
setQueryString(String queryString)

public void
setRequestURI(String requestURI)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bodyback to summary
private ByteChunk body

The body of this request.

contentTypeback to summary
private String contentType

The content type of the request, used if this is a POST.

cookiesback to summary
private final List<Cookie> cookies

The set of Cookies associated with this Request.

decodedRequestURIback to summary
private String decodedRequestURI

The decode request URI associated with this Request. Path parameters are also excluded

headersback to summary
private final Map<String, List<String>> headers

The set of Headers associated with this Request. Each key is a header name, while the value is a List containing one or more actual values for this header. The values are returned as an Iterator when you ask for them.

localesback to summary
private final List<Locale> locales

The set of Locales associated with this Request.

methodback to summary
private String method

The request method used on this Request.

originalMaxInactiveIntervalback to summary
private int originalMaxInactiveInterval

The original maxInactiveInterval for the session.

queryStringback to summary
private String queryString

The query string associated with this Request.

requestURIback to summary
private String requestURI

The request URI associated with this Request.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

SavedRequestback to summary
public SavedRequest()

Method Detail

addCookieback to summary
public void addCookie(Cookie cookie)
addHeaderback to summary
public void addHeader(String name, String value)
addLocaleback to summary
public void addLocale(Locale locale)
getBodyback to summary
public ByteChunk getBody()
getContentTypeback to summary
public String getContentType()
getCookiesback to summary
public Iterator<Cookie> getCookies()
getDecodedRequestURIback to summary
public String getDecodedRequestURI()
getHeaderNamesback to summary
public Iterator<String> getHeaderNames()
getHeaderValuesback to summary
public Iterator<String> getHeaderValues(String name)
getLocalesback to summary
public Iterator<Locale> getLocales()
getMethodback to summary
public String getMethod()
getOriginalMaxInactiveIntervalback to summary
public int getOriginalMaxInactiveInterval()
getQueryStringback to summary
public String getQueryString()
getRequestURIback to summary
public String getRequestURI()
setBodyback to summary
public void setBody(ByteChunk body)
setContentTypeback to summary
public void setContentType(String contentType)
setDecodedRequestURIback to summary
public void setDecodedRequestURI(String decodedRequestURI)
setMethodback to summary
public void setMethod(String method)
setOriginalMaxInactiveIntervalback to summary
public void setOriginalMaxInactiveInterval(int originalMaxInactiveInterval)
setQueryStringback to summary
public void setQueryString(String queryString)
setRequestURIback to summary
public void setRequestURI(String requestURI)