|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--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 java.lang.String |
contentType
|
protected boolean |
hasRedirected
|
protected java.io.OutputStream |
stream
|
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, context, manager, objectModel, prefix, rootContext, sourceHandler, uris, view |
Constructor Summary | |
AbstractCommandLineEnvironment(java.lang.String uri,
java.lang.String view,
java.io.File context,
java.io.OutputStream stream,
org.apache.log.Logger log)
|
Method Summary | |
java.lang.String |
getContentType()
Get the ContentType |
java.io.OutputStream |
getOutputStream()
Get the OutputStream |
boolean |
hasRedirected()
Was one of the redirection methods called ? |
void |
redirect(boolean sessionmode,
java.lang.String newURL)
Redirect the client to a new URL |
void |
setContentLength(int contentLength)
Set the ContentLength |
void |
setContentType(java.lang.String contentType)
Set the ContentType |
Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment |
changeContext, getAction, getAttribute, getAttributeNames, getComponentManager, getContext, getObjectModel, getRootContext, getSourceHandler, getURI, getURIPrefix, getView, globalRedirect, isResponseModified, removeAttribute, resolve, setAttribute, setComponentManager, setContext, setContext, setResponseIsNotModified, setSourceHandler, setStatus, setURIPrefix, tryResetResponse |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.cocoon.environment.Redirector |
globalRedirect |
Field Detail |
protected java.lang.String contentType
protected java.io.OutputStream stream
protected int contentLength
protected boolean hasRedirected
Constructor Detail |
public AbstractCommandLineEnvironment(java.lang.String uri, java.lang.String view, java.io.File context, java.io.OutputStream stream, org.apache.log.Logger log) throws java.net.MalformedURLException
Method Detail |
public void redirect(boolean sessionmode, java.lang.String newURL) throws java.io.IOException
redirect
in interface Redirector
redirect
in class AbstractEnvironment
public boolean hasRedirected()
Redirector
hasRedirected
in interface Redirector
public void setContentType(java.lang.String contentType)
public void setContentLength(int contentLength)
public java.lang.String getContentType()
public java.io.OutputStream getOutputStream() throws java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |