| org.apache.cocoon.environment.AbstractEnvironment
All known Subclasses: org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment, org.apache.cocoon.environment.http.HttpEnvironment, org.apache.cocoon.environment.wrapper.EnvironmentWrapper, org.apache.cocoon.environment.portlet.PortletEnvironment, org.apache.cocoon.environment.background.BackgroundEnvironment,
avalonToCocoonSourceWrapper | protected static Method avalonToCocoonSourceWrapper(Code) | | The AvalonToCocoonSourceWrapper (this is for the deprecated support)
|
initializedComponents | protected boolean initializedComponents(Code) | | Do we have our components ?
|
manager | protected ComponentManager manager(Code) | | The component manager
|
objectModel | protected HashMap objectModel(Code) | | The servlet object model
|
prefix | protected StringBuffer prefix(Code) | | The current prefix to strip off from the request uri
|
rootContext | protected String rootContext(Code) | | The root context path
|
sourceResolver | protected org.apache.excalibur.source.SourceResolver sourceResolver(Code) | | The real source resolver
|
changeContext | public void changeContext(String newPrefix, String newContext) throws IOException(Code) | | Adds an prefix to the overall stripped off prefix from the request uri
|
commitResponse | public void commitResponse() throws IOException(Code) | | Commit the response
|
extractAction | protected static String extractAction(Request req)(Code) | | Helper method to extract the action name from the request.
|
extractView | protected static String extractView(Request request)(Code) | | Helper method to extract the view name from the request.
|
finishingProcessing | public void finishingProcessing()(Code) | | Notify that the processing is finished
This can be used to cleanup the environment object
|
getAction | public String getAction()(Code) | | Returns the request action
|
getContext | public String getContext()(Code) | | Get the current Context
|
getObjectModel | public Map getObjectModel()(Code) | | Returns a Map containing environment specific objects
|
getOutputStream | public OutputStream getOutputStream(int bufferSize) throws IOException(Code) | | Get the output stream where to write the generated resource.
The returned stream is buffered by the environment. If the
buffer size is -1 then the complete output is buffered.
If the buffer size is 0, no buffering takes place.
This method replaces
AbstractEnvironment.getOutputStream() .
|
getRootContext | public String getRootContext()(Code) | | Get the Root Context
|
getURI | public String getURI()(Code) | | Returns the uri in progress. The prefix is stripped off
|
getURIPrefix | public String getURIPrefix()(Code) | | Get the prefix of the URI in progress
|
getView | public String getView()(Code) | | Returns the request view
|
hasAttribute | protected boolean hasAttribute(String name)(Code) | | |
initComponents | protected void initComponents()(Code) | | Initialize the components for the environment
This gets the source resolver and the xmlizer component
|
isInternalRedirect | public boolean isInternalRedirect()(Code) | | |
isResponseModified | public boolean isResponseModified(long lastModified)(Code) | | Check if the response has been modified since the same
"resource" was requested.
The caller has to test if it is really the same "resource"
which is requested.
true if the response is modified or if theenvironment is not able to test it |
release | public void release(org.apache.excalibur.source.Source source)(Code) | | Releases a resolved resource
|
removeAttribute | public void removeAttribute(String name)(Code) | | |
setAction | protected void setAction(String action)(Code) | | Allow implementations to set action later than in super() constructor
Action can be set only once, and should be set in implementation's constructor.
|
setContext | protected void setContext(String context)(Code) | | Set the context.
|
setContext | public void setContext(String prefix, String uri, String context)(Code) | | Set the context. This is similar to changeContext()
except that it is absolute.
|
setResponseIsNotModified | public void setResponseIsNotModified()(Code) | | Mark the response as not modified.
|
setStatus | public void setStatus(int statusCode)(Code) | | Set a status code
|
setURIPrefix | protected void setURIPrefix(String prefix)(Code) | | Set the prefix of the URI in progress
|
setView | protected void setView(String view)(Code) | | Allow implementations to set view later than in super() constructor.
View can be set only once, and should be set in implementation's constructor.
|
startingProcessing | public void startingProcessing()(Code) | | Notify that the processing starts.
|
tryResetResponse | public boolean tryResetResponse() throws IOException(Code) | | Reset the response if possible. This allows error handlers to have
a higher chance to produce clean output if the pipeline that raised
the error has already output some data.
true if the response was successfully reset |
|
|