| org.apache.cocoon.environment.AbstractEnvironment org.apache.cocoon.environment.wrapper.EnvironmentWrapper
EnvironmentWrapper | public class EnvironmentWrapper extends AbstractEnvironment (Code) | | This is a wrapper class for the Environment object.
It has the same properties except that the object model
contains a RequestWrapper object.
author: Björn Lütkemeier author: Carsten Ziegeler version: $Id: EnvironmentWrapper.java 433543 2006-08-22 06:22:54Z crossley $ |
Constructor Summary | |
public | EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger) | public | EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, boolean rawMode) | public | EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode) | public | EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view) | public | EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view, boolean wrapResponse) | public | EnvironmentWrapper(Environment env, ComponentManager manager, String uri, Logger logger, boolean wrapResponse) |
internalRedirect | protected boolean internalRedirect(Code) | | |
objectModel | protected Map objectModel(Code) | | The object model
|
redirectURL | protected String redirectURL(Code) | | The redirect url
|
EnvironmentWrapper | public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode) throws MalformedURLException(Code) | | Constructs an EnvironmentWrapper object from a Request
and Response objects
|
EnvironmentWrapper | public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view) throws MalformedURLException(Code) | | Constructs an EnvironmentWrapper object from a Request
and Response objects
|
EnvironmentWrapper | public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view, boolean wrapResponse) throws MalformedURLException(Code) | | Constructs an EnvironmentWrapper object from a Request
and Response objects
|
commitResponse | public void commitResponse() throws IOException(Code) | | Commit the response
|
getAttribute | public Object getAttribute(String name)(Code) | | Lookup an attribute in this instance, and if not found search it
in the wrapped environment.
Parameters: name - a String , the name of the attribute tolook for an Object , the value of the attribute ornull if no such attribute was found. |
getContentType | public String getContentType()(Code) | | Get the ContentType
|
getObjectModel | public Map getObjectModel()(Code) | | Get the underlying object model
|
getRedirectURL | public String getRedirectURL()(Code) | | if a redirect should happen this returns the url,
otherwise null is returned
|
globalRedirect | public void globalRedirect(boolean sessionmode, String newURL) throws IOException(Code) | | Redirect in the first non-wrapped environment
|
isExternal | public boolean isExternal()(Code) | | Always return false .
|
isInternalRedirect | public boolean isInternalRedirect()(Code) | | |
redirect | public void redirect(boolean sessionmode, String newURL) throws IOException(Code) | | Redirect the client to a new URL is not allowed
|
reset | public void reset()(Code) | | |
setContentLength | public void setContentLength(int length)(Code) | | |
setContentType | public void setContentType(String contentType)(Code) | | Set the ContentType
|
setInternalRedirect | public void setInternalRedirect(boolean flag)(Code) | | |
setOutputStream | public void setOutputStream(OutputStream stream)(Code) | | Set the output stream for this environment. It hides the one of the
wrapped environment.
|
setStatus | public void setStatus(int statusCode)(Code) | | Set the StatusCode
|
setURI | public void setURI(String prefix, String uris)(Code) | | Set a new URI for processing. If the prefix is null the
new URI is inside the current context.
If the prefix is not null the context is changed to the root
context and the prefix is set.
|
tryResetResponse | public boolean tryResetResponse() throws IOException(Code) | | Reset the response if possible. This allows error handlers to have
a higher chance to produce clean output if the pipeline that raised
the error has already output some data.
true if the response was successfully reset |
Methods inherited from org.apache.cocoon.environment.AbstractEnvironment | public void changeContext(String newPrefix, String newContext) throws IOException(Code)(Java Doc) public void commitResponse() throws IOException(Code)(Java Doc) protected static String extractAction(Request req)(Code)(Java Doc) protected static String extractView(Request request)(Code)(Java Doc) public void finishingProcessing()(Code)(Java Doc) public String getAction()(Code)(Java Doc) public Object getAttribute(String name)(Code)(Java Doc) public Enumeration getAttributeNames()(Code)(Java Doc) public String getContext()(Code)(Java Doc) public Map getObjectModel()(Code)(Java Doc) public OutputStream getOutputStream() throws IOException(Code)(Java Doc) public OutputStream getOutputStream(int bufferSize) throws IOException(Code)(Java Doc) public String getRootContext()(Code)(Java Doc) public String getURI()(Code)(Java Doc) public String getURIPrefix()(Code)(Java Doc) public String getView()(Code)(Java Doc) public void globalRedirect(boolean sessionmode, String newURL) throws IOException(Code)(Java Doc) protected boolean hasAttribute(String name)(Code)(Java Doc) protected void initComponents()(Code)(Java Doc) public boolean isInternalRedirect()(Code)(Java Doc) public boolean isResponseModified(long lastModified)(Code)(Java Doc) public void release(org.apache.excalibur.source.Source source)(Code)(Java Doc) public void removeAttribute(String name)(Code)(Java Doc) public Source resolve(String systemId) throws ProcessingException, SAXException, IOException(Code)(Java Doc) public org.apache.excalibur.source.Source resolveURI(String location) throws MalformedURLException, IOException, SourceException(Code)(Java Doc) public org.apache.excalibur.source.Source resolveURI(String location, String baseURI, Map parameters) throws MalformedURLException, IOException, SourceException(Code)(Java Doc) protected void setAction(String action)(Code)(Java Doc) public void setAttribute(String name, Object value)(Code)(Java Doc) protected void setContext(String context)(Code)(Java Doc) public void setContext(String prefix, String uri, String context)(Code)(Java Doc) public void setResponseIsNotModified()(Code)(Java Doc) public void setStatus(int statusCode)(Code)(Java Doc) protected void setURIPrefix(String prefix)(Code)(Java Doc) protected void setView(String view)(Code)(Java Doc) public void startingProcessing()(Code)(Java Doc) public boolean tryResetResponse() throws IOException(Code)(Java Doc)
|
|
|