org.apache.cocoon.environment.internal
Class ForwardEnvironmentWrapper

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.environment.AbstractEnvironment
          extended byorg.apache.cocoon.environment.wrapper.EnvironmentWrapper
              extended byorg.apache.cocoon.environment.internal.ForwardEnvironmentWrapper
All Implemented Interfaces:
org.apache.cocoon.environment.Environment

public final class ForwardEnvironmentWrapper
extends EnvironmentWrapper

Local extension of EnvironmentWrapper to propagate otherwise blocked methods to the actual environment.

Since:
2.2
Version:
$Id: ForwardEnvironmentWrapper.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.environment.wrapper.EnvironmentWrapper
contentType, environment, internalRedirect, redirectURL, request
 
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment
action, objectModel, outputStream, prefix, secureOutputStream, uri, view
 
Constructor Summary
ForwardEnvironmentWrapper(org.apache.cocoon.environment.Environment env, SitemapSourceInfo info)
           
 
Method Summary
 String getContentType()
          Get the ContentType
 boolean isResponseModified(long lastModified)
           
 void setContentLength(int length)
           
 void setContentType(String contentType)
          Set the ContentType
 void setResponseIsNotModified()
           
 void setStatus(int statusCode)
          Set the StatusCode
 
Methods inherited from class org.apache.cocoon.environment.wrapper.EnvironmentWrapper
commitResponse, getAttribute, getOutputStream, getRedirectURL, isExternal, isInternalRedirect, redirect, removeAttribute, reset, setInternalRedirect, setOutputStream, tryResetResponse
 
Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment
extractAction, extractView, finishingProcessing, getAction, getAttributeNames, getObjectModel, getURI, getURIPrefix, getView, setAction, setAttribute, setURI, setView, startingProcessing
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardEnvironmentWrapper

public ForwardEnvironmentWrapper(org.apache.cocoon.environment.Environment env,
                                 SitemapSourceInfo info)
Method Detail

setStatus

public void setStatus(int statusCode)
Description copied from class: EnvironmentWrapper
Set the StatusCode

Specified by:
setStatus in interface org.apache.cocoon.environment.Environment
Overrides:
setStatus in class EnvironmentWrapper
See Also:
Environment.setStatus(int)

setContentLength

public void setContentLength(int length)
Specified by:
setContentLength in interface org.apache.cocoon.environment.Environment
Overrides:
setContentLength in class EnvironmentWrapper
See Also:
Environment.setContentLength(int)

setContentType

public void setContentType(String contentType)
Description copied from class: EnvironmentWrapper
Set the ContentType

Specified by:
setContentType in interface org.apache.cocoon.environment.Environment
Overrides:
setContentType in class EnvironmentWrapper
See Also:
Environment.setContentType(java.lang.String)

getContentType

public String getContentType()
Description copied from class: EnvironmentWrapper
Get the ContentType

Specified by:
getContentType in interface org.apache.cocoon.environment.Environment
Overrides:
getContentType in class EnvironmentWrapper
See Also:
Environment.getContentType()

isResponseModified

public boolean isResponseModified(long lastModified)
See Also:
Environment.isResponseModified(long)

setResponseIsNotModified

public void setResponseIsNotModified()
See Also:
Environment.setResponseIsNotModified()


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.