org.apache.cocoon.environment.internal
Class ForwardEnvironmentWrapper

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.environment.AbstractEnvironment
          extended byorg.apache.cocoon.environment.wrapper.EnvironmentWrapper
              extended byorg.apache.cocoon.environment.internal.ForwardEnvironmentWrapper
All Implemented Interfaces:
Environment, LogEnabled

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.java 312659 2005-10-10 14:11:48Z cziegeler $

Field Summary
 
Fields inherited from class org.apache.cocoon.environment.wrapper.EnvironmentWrapper
contentType, environment, internalRedirect, outputStream, redirectURL, request
 
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment
action, objectModel, prefix, secureOutputStream, uri, view
 
Constructor Summary
ForwardEnvironmentWrapper(Environment env, SitemapSourceInfo info, Logger logger)
           
 
Method Summary
 String getContentType()
          Get the ContentType
 boolean isResponseModified(long lastModified)
          Check if the response has been modified since the same "resource" was requested.
 void setContentLength(int length)
          Set the length of the generated content
 void setContentType(String contentType)
          Set the ContentType
 void setResponseIsNotModified()
          Mark the response as not modified.
 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.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardEnvironmentWrapper

public ForwardEnvironmentWrapper(Environment env,
                                 SitemapSourceInfo info,
                                 Logger logger)
Method Detail

setStatus

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

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

setContentLength

public void setContentLength(int length)
Description copied from interface: Environment
Set the length of the generated content

Specified by:
setContentLength in interface 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 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 Environment
Overrides:
getContentType in class EnvironmentWrapper
See Also:
Environment.getContentType()

isResponseModified

public boolean isResponseModified(long lastModified)
Description copied from interface: Environment
Check if the response has been modified since the same "resource" was requested. The caller has to test if it is really the same "resource" which is requested.

Specified by:
isResponseModified in interface Environment
Overrides:
isResponseModified in class AbstractEnvironment
See Also:
Environment.isResponseModified(long)

setResponseIsNotModified

public void setResponseIsNotModified()
Description copied from interface: Environment
Mark the response as not modified.

Specified by:
setResponseIsNotModified in interface Environment
Overrides:
setResponseIsNotModified in class AbstractEnvironment
See Also:
Environment.setResponseIsNotModified()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.