|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for an environment abstraction
Method Summary | |
void |
changeContext(java.lang.String uriprefix,
java.lang.String context)
Change the context from uriprefix to context |
java.lang.String |
getAction()
Get the action to process |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name, or null
if no object is bound under the name. |
java.util.Enumeration |
getAttributeNames()
Returns an Enumeration of String objects
containing the names of all the objects bound to this environment. |
java.lang.String |
getContentType()
Get the content type of the resource |
java.net.URL |
getContext()
Get current context |
java.util.Map |
getObjectModel()
Get the underlying object model |
java.io.OutputStream |
getOutputStream()
Get the output stream where to write the generated resource. |
java.net.URL |
getRootContext()
Get the Root Context |
SourceHandler |
getSourceHandler()
Get the SourceHandler for the current request |
java.lang.String |
getURI()
Get the URI to process. |
java.lang.String |
getURIPrefix()
Get the prefix of the URI in progress. |
java.lang.String |
getView()
Get the view to process |
boolean |
isResponseModified(long lastModified)
Check if the response has been modified since the same "resource" was requested. |
void |
redirect(boolean sessionmode,
java.lang.String url)
Redirect to the given URL |
void |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this environment. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to this environment, using the name specified. |
void |
setComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
Set the ComponentManager for the current request. |
void |
setContentLength(int length)
Set the length of the generated content |
void |
setContentType(java.lang.String mimeType)
Set the content type of the generated resource |
void |
setContext(java.lang.String prefix,
java.lang.String uri)
Set the context. |
void |
setResponseIsNotModified()
Mark the response as not modified. |
void |
setSourceHandler(SourceHandler sourceHandler)
Set the SourceHandler for the current request |
void |
setStatus(int statusCode)
Set the response status code |
boolean |
tryResetResponse()
Reset the response if possible. |
Methods inherited from interface org.apache.cocoon.environment.SourceResolver |
resolve |
Method Detail |
public SourceHandler getSourceHandler()
SourceHandler
for the current requestpublic void setSourceHandler(SourceHandler sourceHandler)
SourceHandler
for the current requestpublic java.lang.String getURI()
public java.lang.String getURIPrefix()
public java.net.URL getRootContext()
public java.net.URL getContext()
public java.lang.String getView()
public java.lang.String getAction()
public void setContext(java.lang.String prefix, java.lang.String uri)
public void changeContext(java.lang.String uriprefix, java.lang.String context) throws java.lang.Exception
public void redirect(boolean sessionmode, java.lang.String url) throws java.io.IOException
public void setContentType(java.lang.String mimeType)
public java.lang.String getContentType()
public void setContentLength(int length)
public void setStatus(int statusCode)
public java.io.OutputStream getOutputStream() throws java.io.IOException
public java.util.Map getObjectModel()
public boolean isResponseModified(long lastModified)
public void setComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
ComponentManager
for the current request.public void setResponseIsNotModified()
public void setAttribute(java.lang.String name, java.lang.Object value)
If an object of the same name is already bound, the object is replaced.
name
- the name to which the object is boundvalue
- the object to be boundpublic java.lang.Object getAttribute(java.lang.String name)
null
if no object is bound under the name.name
- a string specifying the name of the objectpublic void removeAttribute(java.lang.String name)
name
- the name of the object to removepublic java.util.Enumeration getAttributeNames()
Enumeration
of String
objects
containing the names of all the objects bound to this environment.Enumeration
of String
s.public boolean tryResetResponse()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |