|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.environment.AbstractEnvironment
|
+--org.apache.cocoon.environment.wrapper.EnvironmentWrapper
This is a wrapper class for the Environment object.
It has the same properties except that the object model
contains a RequestWrapper object.
| Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, context, objectModel, prefix, rootContext, sourceHandler, uris, view |
| Constructor Summary | |
EnvironmentWrapper(Environment env,
java.lang.String requestURI,
java.lang.String queryString,
org.apache.log.Logger logger)
Constructs an EnvironmentWrapper object from a Request and Response objects |
|
| Method Summary | |
void |
changeContext(java.lang.String prefix,
java.lang.String context)
Change the context from uriprefix to context |
void |
changeToLastContext()
Change the current context to the last one set by changeContext() |
java.lang.String |
getContentType()
Get the ContentType |
java.util.Map |
getObjectModel()
Get the underlying object model |
java.io.OutputStream |
getOutputStream()
Get the output stream |
java.lang.String |
getRedirectURL()
if a redirect should happen this returns the url, otherwise null is returned |
void |
globalRedirect(boolean sessionmode,
java.lang.String newURL)
Redirect in the first non-wrapped environment |
void |
redirect(boolean sessionmode,
java.lang.String newURL)
Redirect the client to a new URL is not allowed |
void |
reset()
|
void |
setContentLength(int length)
Set the length of the generated content |
void |
setContentType(java.lang.String contentType)
Set the ContentType |
void |
setStatus(int statusCode)
Set the StatusCode |
void |
setURI(java.lang.String prefix,
java.lang.String uris)
Set a new URI for processing. |
| Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment |
getAction, getAttribute, getAttributeNames, getContext, getRootContext, getSourceHandler, getURI, getURIPrefix, getView, isResponseModified, removeAttribute, resolve, setAttribute, setContext, setContext, setResponseIsNotModified, setSourceHandler, setURIPrefix, tryResetResponse |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cocoon.environment.Environment |
getAction, getAttribute, getAttributeNames, getContext, getRootContext, getSourceHandler, getURI, getURIPrefix, getView, isResponseModified, removeAttribute, setAttribute, setContext, setResponseIsNotModified, setSourceHandler, tryResetResponse |
| Methods inherited from interface org.apache.cocoon.environment.SourceResolver |
resolve |
| Constructor Detail |
public EnvironmentWrapper(Environment env,
java.lang.String requestURI,
java.lang.String queryString,
org.apache.log.Logger logger)
throws java.net.MalformedURLException
| Method Detail |
public void redirect(boolean sessionmode,
java.lang.String newURL)
throws java.io.IOException
redirect in interface Environmentredirect in class AbstractEnvironment
public void globalRedirect(boolean sessionmode,
java.lang.String newURL)
throws java.io.IOException
globalRedirect in class AbstractEnvironment
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface Environmentpublic java.lang.String getRedirectURL()
null is returnedpublic void reset()
public void setStatus(int statusCode)
setStatus in interface EnvironmentsetStatus in class AbstractEnvironmentpublic void setContentLength(int length)
EnvironmentsetContentLength in interface Environmentpublic void setContentType(java.lang.String contentType)
setContentType in interface Environmentpublic java.lang.String getContentType()
getContentType in interface Environmentpublic java.util.Map getObjectModel()
getObjectModel in interface EnvironmentgetObjectModel in class AbstractEnvironment
public void setURI(java.lang.String prefix,
java.lang.String uris)
public void changeContext(java.lang.String prefix,
java.lang.String context)
throws java.net.MalformedURLException
EnvironmentchangeContext in interface EnvironmentchangeContext in class AbstractEnvironmentpublic void changeToLastContext()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||