|
||||||||||
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 |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
static String |
ATTRIBUTE_REQUEST_CHARACTER_ENCODING
Deprecated. use AggregationState |
static 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). |
String |
getContextPath()
Get the current context path. |
javax.servlet.jsp.PageContext |
getPageContext()
Returns the current jsp page context, if any. |
String |
getParameter(String name)
Get a parameter value as string. |
Map<String,String> |
getParameters()
Get all parameter values as a Map<String, String>. |
String[] |
getParameterValues(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(String path,
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, getAttribute, getAttribute, getAttributes, getAttributes, getHierarchyManager, getJCRSession, getLocale, getMessages, getMessages, getQueryManager, getSubject, 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 String ATTRIBUTE_REQUEST_CHARACTER_ENCODING
static final 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
.
String getParameter(String name)
Map<String,String> getParameters()
String getContextPath()
javax.servlet.http.HttpServletRequest getRequest()
javax.servlet.http.HttpServletResponse getResponse()
javax.servlet.ServletContext getServletContext()
void include(String path, Writer out) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
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()
String[] getParameterValues(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |