|
Weaver 3.1.0a1-D1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The WeaverRequestContext interfaces manages a request (that is a HTTP GET or POST).
Method Summary | |
Object |
getAttribute(String name)
Getd a request scoped attribute. |
String |
getCharacterEncoding()
Returns the character encoding associated with the request. |
int |
getContentLength()
Get the length of the request. |
String |
getContentType()
Returns the content type (MIME type) associated with the request. |
Cookie[] |
getCookies()
Returns the Cookies associated with the request. |
long |
getDateHeader(String name)
Gets a named request header as a Date. |
String |
getHeader(String name)
Gets a named request header as a String. |
Enumeration |
getHeaderNames()
Gets an Enumeration of the names of all header associated with the request. |
Enumeration |
getHeaders(String name)
Get an Enumeration of all the headers with a given name associated with the requested. |
int |
getIntHeader(String name)
Gets a name request header as an int. |
Locale |
getLocale()
Returns the primary locale associated with the request. |
Enumeration |
getLocales()
Returns all locales associated with the request. |
String |
getParameter(String theName)
Gets a request parameter. |
String[] |
getParameterValues(String theName)
Gets a request parameter. |
WeaverUploadedFile |
getUploadedFile(String name)
Get an uploaded file |
void |
removeAttribute(String name)
Removes a scoped attribute. |
void |
setAttribute(String name,
Object value)
Sets a request scoped attribute. |
Method Detail |
public String getParameter(String theName)
theName
- The name of the parameter.
public String[] getParameterValues(String theName)
theName
- The name of the parameter to retrieve.
public void setAttribute(String name, Object value)
name
- The name of the attribute to set.value
- The value to set the attribute to.public Object getAttribute(String name)
name
- The name of the attribute to retrieve.
public void removeAttribute(String name)
name
- The name of the attribute to remove.public String getContentType()
public String getCharacterEncoding()
public Locale getLocale()
public Enumeration getLocales()
public Cookie[] getCookies()
public long getDateHeader(String name)
name
- The name of the header to retrieve.
public String getHeader(String name)
name
- The name of the header to retrieve.
public int getIntHeader(String name)
name
- The name of the header to retrieve.
public Enumeration getHeaderNames()
public Enumeration getHeaders(String name)
name
- Name of the headers to retrieve.
public int getContentLength()
public WeaverUploadedFile getUploadedFile(String name)
name
- The name of the parameter that contains the uploaded file.
|
Copyright ©Paul Harvey | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |