|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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
IOExceptionpublic void setStatus(int statusCode)
setStatus in interface org.apache.cocoon.environment.EnvironmentsetStatus in class AbstractEnvironmentpublic void setContentType(String contentType)
public String getContentType()
public void setContentLength(int length)
public boolean isResponseModified(long lastModified)
isResponseModified in interface org.apache.cocoon.environment.EnvironmentisResponseModified in class AbstractEnvironmentpublic void setResponseIsNotModified()
setResponseIsNotModified in interface org.apache.cocoon.environment.EnvironmentsetResponseIsNotModified in class AbstractEnvironment
public boolean tryResetResponse()
throws IOException
tryResetResponse in interface org.apache.cocoon.environment.EnvironmenttryResetResponse in class AbstractEnvironmentIOException
public OutputStream getOutputStream(int bufferSize)
throws IOException
getOutputStream in interface org.apache.cocoon.environment.EnvironmentgetOutputStream in class AbstractEnvironmentIOExceptionpublic boolean isExternal()
true.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||