|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.environment.AbstractEnvironment
org.apache.cocoon.environment.background.BackgroundEnvironment
A simple implementation of org.apache.cocoon.environment.Environment
for pipeline calls which are not externally triggered.
Field Summary |
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, objectModel, outputStream, prefix, secureOutputStream, uri, view |
Constructor Summary | |
BackgroundEnvironment(Logger logger,
Context ctx)
|
|
BackgroundEnvironment(String uri,
String view,
File context,
OutputStream stream,
Logger logger)
|
Method Summary | |
String |
getContentType()
Get the content type of the resource |
boolean |
isExternal()
Always return false |
void |
redirect(String newURL,
boolean global,
boolean permanent)
Redirect to the given URL |
void |
setContentLength(int length)
Set the length of the generated content |
void |
setContentType(String mimeType)
Set the content type of the generated resource |
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.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 |
public BackgroundEnvironment(Logger logger, Context ctx)
public BackgroundEnvironment(String uri, String view, File context, OutputStream stream, Logger logger)
uri
- view
- context
- stream
- logger
- Method Detail |
public void redirect(String newURL, boolean global, boolean permanent) throws IOException
Environment
IOException
public void setContentType(String mimeType)
Environment
Environment.setContentType(java.lang.String)
public String getContentType()
Environment
Environment.getContentType()
public void setContentLength(int length)
Environment
Environment.setContentLength(int)
public boolean isExternal()
Environment.isExternal()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |