|
|||||||||||
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 org.apache.cocoon.environment.http.HttpEnvironment
HTTP Servlet environment.
Field Summary | |
static String |
HTTP_REQUEST_OBJECT
|
static String |
HTTP_RESPONSE_OBJECT
|
static String |
HTTP_SERVLET_CONTEXT
|
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, objectModel, outputStream, prefix, secureOutputStream, uri, view |
Constructor Summary | |
HttpEnvironment(String uri,
HttpServletRequest req,
HttpServletResponse res,
ServletContext servletContext,
org.apache.cocoon.environment.Context context,
String containerEncoding,
String defaultFormEncoding)
Constructs a HttpEnvironment object from a HttpServletRequest and HttpServletResponse objects |
Method Summary | |
String |
getContentType()
Get the ContentType |
OutputStream |
getOutputStream(int bufferSize)
Get the output stream where to write the generated resource. |
boolean |
isExternal()
Always return true . |
boolean |
isResponseModified(long lastModified)
Check if the response has been modified since the same "resource" was requested. |
void |
redirect(String newURL,
boolean global,
boolean permanent)
Redirect the client to new URL |
void |
setContentLength(int length)
Set the length of the generated content |
void |
setContentType(String contentType)
Set the ContentType |
void |
setResponseIsNotModified()
Mark the response as not modified. |
void |
setStatus(int statusCode)
Set the StatusCode |
boolean |
tryResetResponse()
Reset the response if possible. |
Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment |
commitResponse, extractAction, extractView, finishingProcessing, getAction, getAttribute, getAttributeNames, getObjectModel, getURI, getURIPrefix, getView, isInternalRedirect, removeAttribute, setAction, setAttribute, setURI, setView, startingProcessing |
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 |
Field Detail |
public static final String HTTP_REQUEST_OBJECT
public static final String HTTP_RESPONSE_OBJECT
public static final String HTTP_SERVLET_CONTEXT
Constructor Detail |
public HttpEnvironment(String uri, HttpServletRequest req, HttpServletResponse res, ServletContext servletContext, org.apache.cocoon.environment.Context context, String containerEncoding, String defaultFormEncoding) throws IOException
Method Detail |
public void redirect(String newURL, boolean global, boolean permanent) throws IOException
IOException
public void setStatus(int statusCode)
setStatus
in interface org.apache.cocoon.environment.Environment
setStatus
in class AbstractEnvironment
public void setContentType(String contentType)
public String getContentType()
public void setContentLength(int length)
public boolean isResponseModified(long lastModified)
isResponseModified
in interface org.apache.cocoon.environment.Environment
isResponseModified
in class AbstractEnvironment
public void setResponseIsNotModified()
setResponseIsNotModified
in interface org.apache.cocoon.environment.Environment
setResponseIsNotModified
in class AbstractEnvironment
public boolean tryResetResponse() throws IOException
tryResetResponse
in interface org.apache.cocoon.environment.Environment
tryResetResponse
in class AbstractEnvironment
IOException
public OutputStream getOutputStream(int bufferSize) throws IOException
getOutputStream
in interface org.apache.cocoon.environment.Environment
getOutputStream
in class AbstractEnvironment
IOException
public boolean isExternal()
true
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |