|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.berlioz.servlet.HttpRequestWrapper
org.weborganic.berlioz.servlet.HttpContentRequest
public final class HttpContentRequest
Wraps a ServletRequest
instance and provide methods to access the parameters and attributes in
a consistent manner.
Method Summary | |
---|---|
ContentGenerator |
generator()
Returns the generator for which this request is used for. |
String |
getRedirectURL()
Returns the URL to redirect to. |
Service |
getService()
Service the generator is part of. |
ContentStatus |
getStatus()
Returns the status of this request. |
void |
setRedirect(String url,
ContentStatus status)
Sets the status of this request. |
void |
setStatus(ContentStatus status)
Sets the status of this request. |
Methods inherited from class org.weborganic.berlioz.servlet.HttpRequestWrapper |
---|
getAttribute, getBerliozPath, getBerliozPath, getCookies, getDateParameter, getEnvironment, getHttpRequest, getHttpResponse, getIntParameter, getLocation, getParameter, getParameter, getParameterNames, getParameterValues, getPathInfo, getSession, isMultipartContent, setAttribute |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.weborganic.berlioz.content.ContentRequest |
---|
getAttribute, getBerliozPath, getCookies, getDateParameter, getEnvironment, getIntParameter, getLocation, getParameter, getParameter, getParameterNames, getParameterValues, getPathInfo, getSession, setAttribute |
Method Detail |
---|
public void setStatus(ContentStatus status)
setStatus
in interface ContentRequest
status
- the status of this request.
NullPointerException
- if the status is null
.
IllegalArgumentException
- if the status is a redirect status.public void setRedirect(String url, ContentStatus status)
setRedirect
in interface ContentRequest
url
- The URL to redirect to.status
- The status code to use (required).
NullPointerException
- if the URL is null
.
IllegalArgumentException
- if the status is not a redirect status.public ContentStatus getStatus()
public ContentGenerator generator()
public Service getService()
public String getRedirectURL()
null
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |