|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.AbstractLogEnabled org.apache.cocoon.environment.AbstractEnvironment
Base class for any environment
Field Summary | |
protected String |
action
The Action requested |
protected Map |
objectModel
The object model |
protected OutputStream |
outputStream
The real output stream |
protected String |
prefix
The prefix |
protected org.apache.cocoon.util.BufferedOutputStream |
secureOutputStream
The secure Output Stream |
protected String |
uri
The current uri in progress |
protected String |
view
The View requested |
Constructor Summary | |
AbstractEnvironment(String uri,
String view)
Constructs the abstract environment |
|
AbstractEnvironment(String uri,
String view,
String action)
Constructs the abstract environment |
Method Summary | |
void |
commitResponse()
|
protected static String |
extractAction(org.apache.cocoon.environment.Request req)
Helper method to extract the action name from the request. |
protected static String |
extractView(org.apache.cocoon.environment.Request request)
Helper method to extract the view name from the request. |
void |
finishingProcessing()
|
String |
getAction()
|
Object |
getAttribute(String name)
|
Enumeration |
getAttributeNames()
|
Map |
getObjectModel()
|
OutputStream |
getOutputStream(int bufferSize)
|
String |
getURI()
|
String |
getURIPrefix()
|
String |
getView()
|
boolean |
isInternalRedirect()
|
boolean |
isResponseModified(long lastModified)
|
void |
removeAttribute(String name)
|
protected void |
setAction(String action)
Allow implementations to set action later than in super() constructor Action can be set only once, and should be set in implementation's constructor. |
void |
setAttribute(String name,
Object value)
|
void |
setResponseIsNotModified()
|
void |
setStatus(int statusCode)
|
void |
setURI(String prefix,
String value)
|
protected void |
setView(String view)
Allow implementations to set view later than in super() constructor. |
void |
startingProcessing()
|
boolean |
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 |
Methods inherited from interface org.apache.cocoon.environment.Environment |
getContentType, isExternal, redirect, setContentLength, setContentType |
Field Detail |
protected String uri
protected String prefix
protected String view
protected String action
protected Map objectModel
protected org.apache.cocoon.util.BufferedOutputStream secureOutputStream
protected OutputStream outputStream
Constructor Detail |
public AbstractEnvironment(String uri, String view)
public AbstractEnvironment(String uri, String view, String action)
Method Detail |
protected void setView(String view)
protected void setAction(String action)
protected static String extractView(org.apache.cocoon.environment.Request request)
protected static String extractAction(org.apache.cocoon.environment.Request req)
public String getURI()
getURI
in interface org.apache.cocoon.environment.Environment
public String getURIPrefix()
getURIPrefix
in interface org.apache.cocoon.environment.Environment
public void setURI(String prefix, String value)
setURI
in interface org.apache.cocoon.environment.Environment
public String getView()
getView
in interface org.apache.cocoon.environment.Environment
public String getAction()
getAction
in interface org.apache.cocoon.environment.Environment
public void setStatus(int statusCode)
setStatus
in interface org.apache.cocoon.environment.Environment
public Map getObjectModel()
getObjectModel
in interface org.apache.cocoon.environment.Environment
public boolean isResponseModified(long lastModified)
isResponseModified
in interface org.apache.cocoon.environment.Environment
public void setResponseIsNotModified()
setResponseIsNotModified
in interface org.apache.cocoon.environment.Environment
public Object getAttribute(String name)
getAttribute
in interface org.apache.cocoon.environment.Environment
public void setAttribute(String name, Object value)
setAttribute
in interface org.apache.cocoon.environment.Environment
public void removeAttribute(String name)
removeAttribute
in interface org.apache.cocoon.environment.Environment
public Enumeration getAttributeNames()
getAttributeNames
in interface org.apache.cocoon.environment.Environment
public OutputStream getOutputStream(int bufferSize) throws IOException
getOutputStream
in interface org.apache.cocoon.environment.Environment
IOException
public boolean tryResetResponse() throws IOException
tryResetResponse
in interface org.apache.cocoon.environment.Environment
IOException
public void commitResponse() throws IOException
commitResponse
in interface org.apache.cocoon.environment.Environment
IOException
public void startingProcessing()
startingProcessing
in interface org.apache.cocoon.environment.Environment
public void finishingProcessing()
finishingProcessing
in interface org.apache.cocoon.environment.Environment
public boolean isInternalRedirect()
isInternalRedirect
in interface org.apache.cocoon.environment.Environment
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |