public class GenerationEnvironment extends AbstractEnvironment
org.apache.cocoon.environment.Environment
for pipeline
calls which are not externally triggered.action, avalonToCocoonSourceWrapper, context, initializedComponents, manager, objectModel, outputStream, prefix, rootContext, secureOutputStream, sourceResolver, uris, view
METHOD, ROLE, URI_ENCODING, URI_PARAMETERS
Constructor and Description |
---|
GenerationEnvironment(Logger logger,
Context ctx,
String targetContextPath)
Creates a generation environment.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
boolean |
isExternal() |
void |
redirect(boolean sessionmode,
String newURL) |
void |
setContentLength(int length) |
void |
setContentType(String mimeType) |
changeContext, commitResponse, extractAction, extractView, finishingProcessing, getAction, getAttribute, getAttributeNames, getContext, getObjectModel, getOutputStream, getOutputStream, getRootContext, getURI, getURIPrefix, getView, globalRedirect, hasAttribute, initComponents, isInternalRedirect, isResponseModified, release, removeAttribute, resolve, resolveURI, resolveURI, setAction, setAttribute, setContext, setContext, setResponseIsNotModified, setStatus, setURIPrefix, setView, startingProcessing, tryResetResponse
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public GenerationEnvironment(Logger logger, Context ctx, String targetContextPath) throws MalformedURLException
logger
- the logger.ctx
- the contexttargetContextPath
- the path to the context of the server where the generation will be deployed.MalformedURLException
- if the environment cannot be initialized with the context.public void redirect(boolean sessionmode, String newURL) throws IOException
IOException
public void setContentType(String mimeType)
public String getContentType()
public void setContentLength(int length)
public boolean isExternal()