public final class SavedRequest extends Object
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.
| Constructor and Description |
|---|
SavedRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(javax.servlet.http.Cookie cookie) |
void |
addHeader(String name,
String value) |
void |
addLocale(Locale locale) |
void |
addParameter(String name,
String[] values) |
org.glassfish.grizzly.http.util.ByteChunk |
getBody() |
int |
getContentLenght() |
String |
getContentType() |
Iterator<javax.servlet.http.Cookie> |
getCookies() |
Iterator<String> |
getHeaderNames() |
Iterator<String> |
getHeaderValues(String name) |
Iterator<Locale> |
getLocales() |
String |
getMethod() |
Iterator<String> |
getParameterNames() |
String[] |
getParameterValues(String name) |
String |
getQueryString() |
String |
getRequestURI() |
void |
setBody(org.glassfish.grizzly.http.util.ByteChunk body) |
void |
setContentLength(int contentLength) |
void |
setContentType(String contentType) |
void |
setMethod(String method) |
void |
setQueryString(String queryString) |
void |
setRequestURI(String requestURI) |
public void addCookie(javax.servlet.http.Cookie cookie)
public Iterator<javax.servlet.http.Cookie> getCookies()
public void addLocale(Locale locale)
public String getMethod()
public void setMethod(String method)
public String getQueryString()
public void setQueryString(String queryString)
public String getRequestURI()
public void setRequestURI(String requestURI)
public org.glassfish.grizzly.http.util.ByteChunk getBody()
public void setBody(org.glassfish.grizzly.http.util.ByteChunk body)
public String getContentType()
public void setContentType(String contentType)
public int getContentLenght()
public void setContentLength(int contentLength)
Copyright © 2019. All rights reserved.