| org.apache.cocoon.environment.AbstractEnvironment org.apache.cocoon.environment.http.HttpEnvironment
HTTP_REQUEST_OBJECT | final public static String HTTP_REQUEST_OBJECT(Code) | | |
HTTP_RESPONSE_OBJECT | final public static String HTTP_RESPONSE_OBJECT(Code) | | |
HTTP_SERVLET_CONTEXT | final public static String HTTP_SERVLET_CONTEXT(Code) | | |
getContentType | public String getContentType()(Code) | | Get the ContentType
|
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
HttpEnvironment.getOutputStream() .
|
hasRedirected | public boolean hasRedirected()(Code) | | |
isExternal | public boolean isExternal()(Code) | | Always return true .
|
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 |
sendStatus | public void sendStatus(int sc)(Code) | | |
setContentLength | public void setContentLength(int length)(Code) | | Set the length of the generated content
|
setContentType | public void setContentType(String contentType)(Code) | | Set the ContentType
|
setResponseIsNotModified | public void setResponseIsNotModified()(Code) | | Mark the response as not modified.
|
setStatus | public void setStatus(int statusCode)(Code) | | Set the StatusCode
|
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 |
Methods inherited from org.apache.cocoon.environment.AbstractEnvironment | public void changeContext(String newPrefix, String newContext) throws IOException(Code)(Java Doc) public void commitResponse() throws IOException(Code)(Java Doc) protected static String extractAction(Request req)(Code)(Java Doc) protected static String extractView(Request request)(Code)(Java Doc) public void finishingProcessing()(Code)(Java Doc) public String getAction()(Code)(Java Doc) public Object getAttribute(String name)(Code)(Java Doc) public Enumeration getAttributeNames()(Code)(Java Doc) public String getContext()(Code)(Java Doc) public Map getObjectModel()(Code)(Java Doc) public OutputStream getOutputStream() throws IOException(Code)(Java Doc) public OutputStream getOutputStream(int bufferSize) throws IOException(Code)(Java Doc) public String getRootContext()(Code)(Java Doc) public String getURI()(Code)(Java Doc) public String getURIPrefix()(Code)(Java Doc) public String getView()(Code)(Java Doc) public void globalRedirect(boolean sessionmode, String newURL) throws IOException(Code)(Java Doc) protected boolean hasAttribute(String name)(Code)(Java Doc) protected void initComponents()(Code)(Java Doc) public boolean isInternalRedirect()(Code)(Java Doc) public boolean isResponseModified(long lastModified)(Code)(Java Doc) public void release(org.apache.excalibur.source.Source source)(Code)(Java Doc) public void removeAttribute(String name)(Code)(Java Doc) public Source resolve(String systemId) throws ProcessingException, SAXException, IOException(Code)(Java Doc) public org.apache.excalibur.source.Source resolveURI(String location) throws MalformedURLException, IOException, SourceException(Code)(Java Doc) public org.apache.excalibur.source.Source resolveURI(String location, String baseURI, Map parameters) throws MalformedURLException, IOException, SourceException(Code)(Java Doc) protected void setAction(String action)(Code)(Java Doc) public void setAttribute(String name, Object value)(Code)(Java Doc) protected void setContext(String context)(Code)(Java Doc) public void setContext(String prefix, String uri, String context)(Code)(Java Doc) public void setResponseIsNotModified()(Code)(Java Doc) public void setStatus(int statusCode)(Code)(Java Doc) protected void setURIPrefix(String prefix)(Code)(Java Doc) protected void setView(String view)(Code)(Java Doc) public void startingProcessing()(Code)(Java Doc) public boolean tryResetResponse() throws IOException(Code)(Java Doc)
|
|
|