|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.environment.AbstractEnvironment | +--org.apache.cocoon.environment.http.HttpEnvironment
Field Summary | |
static java.lang.String |
HTTP_REQUEST_OBJECT
|
static java.lang.String |
HTTP_RESPONSE_OBJECT
|
static java.lang.String |
HTTP_SERVLET_CONTEXT
|
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, context, manager, objectModel, prefix, rootContext, sourceHandler, uris, view |
Constructor Summary | |
HttpEnvironment(java.lang.String uri,
java.net.URL rootURL,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletContext servletContext,
HttpContext context,
java.lang.String containerEncoding,
java.lang.String defaultFormEncoding,
RequestFactory requestFactory)
Constructs a HttpEnvironment object from a HttpServletRequest and HttpServletResponse objects |
Method Summary | |
java.lang.String |
getContentType()
Get the ContentType |
java.io.OutputStream |
getOutputStream()
Get the OutputStream |
boolean |
hasRedirected()
Was one of the redirection methods called ? |
boolean |
isResponseModified(long lastModified)
Check if the response has been modified since the same "resource" was requested. |
void |
redirect(boolean sessionmode,
java.lang.String newURL)
Redirect the client to new URL with session mode |
void |
setContentLength(int length)
Set the length of the generated content |
void |
setContentType(java.lang.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 |
changeContext, getAction, getAttribute, getAttributeNames, getComponentManager, getContext, getObjectModel, getRootContext, getSourceHandler, getURI, getURIPrefix, getView, globalRedirect, removeAttribute, resolve, setAttribute, setComponentManager, setContext, setContext, setSourceHandler, setURIPrefix |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.cocoon.environment.Redirector |
globalRedirect |
Field Detail |
public static final java.lang.String HTTP_REQUEST_OBJECT
public static final java.lang.String HTTP_RESPONSE_OBJECT
public static final java.lang.String HTTP_SERVLET_CONTEXT
Constructor Detail |
public HttpEnvironment(java.lang.String uri, java.net.URL rootURL, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.ServletContext servletContext, HttpContext context, java.lang.String containerEncoding, java.lang.String defaultFormEncoding, RequestFactory requestFactory) throws java.net.MalformedURLException, java.io.IOException
Method Detail |
public void redirect(boolean sessionmode, java.lang.String newURL) throws java.io.IOException
redirect
in interface Redirector
redirect
in class AbstractEnvironment
java.io.IOException
public boolean hasRedirected()
Redirector
hasRedirected
in interface Redirector
public void setStatus(int statusCode)
setStatus
in interface Environment
setStatus
in class AbstractEnvironment
public void setContentType(java.lang.String contentType)
setContentType
in interface Environment
public java.lang.String getContentType()
getContentType
in interface Environment
public void setContentLength(int length)
setContentLength
in interface Environment
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface Environment
java.io.IOException
public boolean isResponseModified(long lastModified)
isResponseModified
in interface Environment
isResponseModified
in class AbstractEnvironment
public void setResponseIsNotModified()
setResponseIsNotModified
in interface Environment
setResponseIsNotModified
in class AbstractEnvironment
public boolean tryResetResponse()
tryResetResponse
in interface Environment
tryResetResponse
in class AbstractEnvironment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |