public interface WebContext extends Context
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_REQUEST_CHARACTER_ENCODING
Deprecated.
since 5.3.3 use AggregationState
|
static String |
ATTRIBUTE_REQUEST_URI
Deprecated.
since 5.3.3 use AggregationState
|
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_REQUESTOR, ATTRIBUTE_USERNAME, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE
Modifier and Type | Method and Description |
---|---|
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.
|
getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getHierarchyManager, getJCRSession, getLocale, getMessages, getMessages, getQueryManager, getSubject, getUser, release, removeAttribute, setAttribute, setLocale
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
static final String ATTRIBUTE_REQUEST_CHARACTER_ENCODING
static final String ATTRIBUTE_REQUEST_URI
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)
void pop()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.