org.apache.cocoon.environment.background
Class BackgroundEnvironment

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.environment.AbstractEnvironment
          extended byorg.apache.cocoon.environment.background.BackgroundEnvironment
All Implemented Interfaces:
org.apache.cocoon.environment.Environment

public class BackgroundEnvironment
extends org.apache.cocoon.environment.AbstractEnvironment

A simple implementation of org.apache.cocoon.environment.Environment for pipeline calls which are not externally triggered.

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

Field Summary
 
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment
action, objectModel, outputStream, prefix, secureOutputStream, uri, view
 
Constructor Summary
BackgroundEnvironment(org.apache.cocoon.environment.Context ctx)
           
 
Method Summary
 String getContentType()
           
 boolean isExternal()
          Always return false
 void redirect(String newURL, boolean global, boolean permanent)
           
 void setContentLength(int length)
           
 void setContentType(String mimeType)
           
 
Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment
commitResponse, extractAction, extractView, finishingProcessing, getAction, getAttribute, getAttributeNames, getObjectModel, getOutputStream, getURI, getURIPrefix, getView, isInternalRedirect, isResponseModified, removeAttribute, setAction, setAttribute, setResponseIsNotModified, setStatus, setURI, setView, startingProcessing, tryResetResponse
 
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

BackgroundEnvironment

public BackgroundEnvironment(org.apache.cocoon.environment.Context ctx)
Method Detail

redirect

public void redirect(String newURL,
                     boolean global,
                     boolean permanent)
              throws IOException
Throws:
IOException
See Also:
Environment.redirect(java.lang.String, boolean, boolean)

setContentType

public void setContentType(String mimeType)
See Also:
Environment.setContentType(java.lang.String)

getContentType

public String getContentType()
See Also:
Environment.getContentType()

setContentLength

public void setContentLength(int length)
See Also:
Environment.setContentLength(int)

isExternal

public boolean isExternal()
Always return false

See Also:
Environment.isExternal()


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