|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebContext
Context interface specialized for servlet requests; knows about HttpServletRequest/HttpServletResponse.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_REQUEST_CHARACTER_ENCODING
Deprecated. use AggregationState |
static java.lang.String |
ATTRIBUTE_REQUEST_URI
Deprecated. use AggregationState |
Fields inherited from interface info.magnolia.context.Context |
---|
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE |
Method Summary | |
---|---|
AggregationState |
getAggregationState()
Retrieves the Aggregator instance, which gathers all info regarding the current request (paths, etc). |
java.lang.String |
getContextPath()
Get the current context path. |
javax.servlet.jsp.PageContext |
getPageContext()
Returns the current jsp page context, if any. |
java.lang.String |
getParameter(java.lang.String name)
Get a parameter value as string. |
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Get all parameter values as a Map<String, String>. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Get parameter values as string[]. |
MultipartForm |
getPostedForm()
Get form object assembled by MultipartRequestFilter . |
javax.servlet.http.HttpServletRequest |
getRequest()
Avoid calls to this method wherever possible. |
javax.servlet.http.HttpServletResponse |
getResponse()
Avoid depending on this as much as possible. |
javax.servlet.ServletContext |
getServletContext()
Returns the current servlet context. |
void |
include(java.lang.String path,
java.io.Writer out)
Includes/render the given path into the given Writer, by wrapping it in the current HttpServletResponse. |
void |
init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
Method used to initialize the context. |
void |
pop()
|
void |
push(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
resetAggregationState()
Resets the current aggregator instance. |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Sets the current jsp page context. |
Methods inherited from interface info.magnolia.context.Context |
---|
getAccessManager, getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getHierarchyManager, getHierarchyManager, getLocale, getMessages, getMessages, getQueryManager, getQueryManager, getUser, release, removeAttribute, setAttribute, setLocale |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_REQUEST_CHARACTER_ENCODING
static final java.lang.String ATTRIBUTE_REQUEST_URI
Method Detail |
---|
void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
AggregationState getAggregationState()
void resetAggregationState()
MultipartForm getPostedForm()
MultipartRequestFilter
.
java.lang.String getParameter(java.lang.String name)
java.util.Map<java.lang.String,java.lang.String> getParameters()
java.lang.String getContextPath()
javax.servlet.http.HttpServletRequest getRequest()
javax.servlet.http.HttpServletResponse getResponse()
javax.servlet.ServletContext getServletContext()
void include(java.lang.String path, java.io.Writer out) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
ServletRequest.getRequestDispatcher(String)
,
RequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void setPageContext(javax.servlet.jsp.PageContext pageContext)
pageContext
- jsp page contextjavax.servlet.jsp.PageContext getPageContext()
void push(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- response
- void pop()
java.lang.String[] getParameterValues(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |