|
||||||||
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.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 |
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 |
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 setResponseIsNotModified()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |