|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForwardResolution
A forward resolution
Method Summary | |
---|---|
ForwardResolution |
addCookie(javax.servlet.http.Cookie cookie)
Adds a cookie |
ForwardResolution |
addCookie(java.lang.String name,
java.lang.String value)
Adds a cookie that will not be stored on disk (will be deleted when the browser is closed). |
ForwardResolution |
addCookie(java.lang.String name,
java.lang.String value,
int maxAge)
Adds a cookie |
ForwardResolution |
addHeader(java.lang.String name,
java.lang.Object value)
Add a http header. |
ForwardResolution |
set(java.lang.String name,
java.lang.Object value)
Set a request-scoped attribute. |
ForwardResolution |
setAttribute(java.lang.String name,
java.lang.Object value)
Deprecated. use set(java.lang.String, java.lang.Object) instead |
ForwardResolution |
setCacheControl(CacheControl cacheControl)
Sets the cache data to be sent to the browser |
ForwardResolution |
setCharset(java.lang.String charset)
Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8. |
ForwardResolution |
setContentType(java.lang.String contentType)
Sets the content type of the response being sent to the client, if the response has not been committed yet. |
ForwardResolution |
setHeader(java.lang.String name,
java.lang.Object value)
Set a String http header. |
ForwardResolution |
setHeaderIfNotPresent(java.lang.String name,
java.lang.Object value)
Set a String http header if it has not been set. |
Methods inherited from interface org.loom.resolution.Resolution |
---|
resolve |
Method Detail |
---|
ForwardResolution set(java.lang.String name, java.lang.Object value)
name
- the name of the attribute to setvalue
- the value of the attribute
ForwardResolution setAttribute(java.lang.String name, java.lang.Object value)
set(java.lang.String, java.lang.Object)
instead
name
- the name of the attribute to setvalue
- the value of the attribute
ForwardResolution addCookie(java.lang.String name, java.lang.String value)
HttpResolution
addCookie
in interface HttpResolution
name
- the name of the cookievalue
- the value of the CookieForwardResolution addCookie(java.lang.String name, java.lang.String value, int maxAge)
HttpResolution
addCookie
in interface HttpResolution
name
- the name of the cookievalue
- the value of the CookiemaxAge
- can be positive (number of seconds that it will be stored in
the browser), zero (to delete the cookie from the browser) or
a negative value (to indicate that the cookie should not be
stored in disk and will be forgotten when the browser exists).ForwardResolution addCookie(javax.servlet.http.Cookie cookie)
HttpResolution
addCookie
in interface HttpResolution
cookie
- the cookie to be added to the responseForwardResolution addHeader(java.lang.String name, java.lang.Object value)
HttpResolution
addHeader
in interface HttpResolution
name
- the name of the http headervalue
- the value of the http header. Date, int and String are supported. Anything else will be cast to toString(). Null will be ignored.ForwardResolution setHeader(java.lang.String name, java.lang.Object value)
HttpResolution
setHeader
in interface HttpResolution
name
- the name of the http headervalue
- the value of the http headerForwardResolution setHeaderIfNotPresent(java.lang.String name, java.lang.Object value)
HttpResolution
setHeaderIfNotPresent
in interface HttpResolution
name
- the name of the http headervalue
- the value of the http headerForwardResolution setCharset(java.lang.String charset)
HttpResolution
setCharset
in interface HttpResolution
ForwardResolution setContentType(java.lang.String contentType)
HttpResolution
text/html;charset=UTF-8
.
Notice that #setCharset(String) can also be used for this.
setContentType
in interface HttpResolution
ForwardResolution setCacheControl(CacheControl cacheControl)
CacheableResolution
setCacheControl
in interface CacheableResolution
setCacheControl
in interface HttpResolution
cacheControl
- the cache data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |