|
|||||||||||
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.commandline.AbstractCommandLineEnvironment
This environment is used to save the requested file to disk.
Field Summary | |
protected int |
contentLength
|
protected String |
contentType
|
protected int |
statusCode
|
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, objectModel, outputStream, prefix, secureOutputStream, uri, view |
Constructor Summary | |
AbstractCommandLineEnvironment(String uri,
String view,
File context,
OutputStream stream,
Logger log)
|
Method Summary | |
String |
getContentType()
Get the ContentType |
OutputStream |
getOutputStream(int bufferSize)
Return an OutputStream, but allow it to be null for when the pipeline is being streamed to the provided SAX content handler (using CocoonBean) |
int |
getStatus()
Get the StatusCode |
boolean |
isExternal()
Always return true . |
void |
redirect(String newURL,
boolean global,
boolean permanent)
Redirect the client to a new URL |
void |
setContentLength(int contentLength)
Set the ContentLength |
void |
setContentType(String contentType)
Set the ContentType |
void |
setStatus(int statusCode)
Set the StatusCode |
Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment |
commitResponse, extractAction, extractView, finishingProcessing, getAction, getAttribute, getAttributeNames, getObjectModel, getURI, getURIPrefix, getView, isInternalRedirect, isResponseModified, removeAttribute, setAction, setAttribute, setResponseIsNotModified, 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 |
Field Detail |
protected String contentType
protected int contentLength
protected int statusCode
Constructor Detail |
public AbstractCommandLineEnvironment(String uri, String view, File context, OutputStream stream, Logger log) throws MalformedURLException
Method Detail |
public void redirect(String newURL, boolean global, boolean permanent) throws IOException
IOException
public void setStatus(int statusCode)
setStatus
in interface Environment
setStatus
in class AbstractEnvironment
public int getStatus()
public void setContentType(String contentType)
public void setContentLength(int contentLength)
public String getContentType()
public boolean isExternal()
true
.
public OutputStream getOutputStream(int bufferSize) throws IOException
getOutputStream
in interface Environment
getOutputStream
in class AbstractEnvironment
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |