public final class WebUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addCookie(org.springframework.webflow.execution.RequestContext context,
String cookieName,
String cookieValue) |
static Object |
getAttribute(org.springframework.webflow.execution.RequestContext context,
String attributeKey)
get attribute from request; if not found get it from session.
|
static Object |
getAttributeFromExternalContext(org.springframework.webflow.execution.RequestContext context,
String attributeKey) |
static Object |
getAttributeFromFlowScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey) |
static Object |
getAttributeFromRequestScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey) |
static String |
getHttpHeader(org.springframework.webflow.execution.RequestContext requestContext,
String headerName) |
static javax.servlet.http.HttpServletRequest |
getHttpServletRequest(org.springframework.webflow.execution.RequestContext context) |
static javax.servlet.http.HttpServletResponse |
getHttpServletResponse(org.springframework.webflow.execution.RequestContext context) |
static javax.servlet.http.HttpSession |
getHttpSession(org.springframework.webflow.execution.RequestContext context) |
static String |
getParamFromRequestParameters(org.springframework.webflow.execution.RequestContext context,
String attributeKey) |
static void |
putAttribute(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue,
boolean storeInSession)
put attribute in request or in session depending on storeInSession.
|
static void |
putAttributeInExternalContext(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue) |
static void |
putAttributeInFlowScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue) |
static void |
putAttributeInRequestScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue) |
static javax.servlet.http.Cookie |
readCookie(org.springframework.webflow.execution.RequestContext context,
String cookieName) |
static Object |
removeAttribute(org.springframework.webflow.execution.RequestContext context,
String attributeKey)
remove attribute from request and session.
|
static Object |
removeAttributeFromExternalContext(org.springframework.webflow.execution.RequestContext context,
String attributeKey) |
static Object |
removeAttributeFromFlowScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey) |
static Object |
removeAttributeFromRequestScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey) |
static void |
removeCookie(org.springframework.webflow.execution.RequestContext context,
String cookieName) |
public static javax.servlet.http.HttpServletRequest getHttpServletRequest(org.springframework.webflow.execution.RequestContext context)
public static javax.servlet.http.HttpSession getHttpSession(org.springframework.webflow.execution.RequestContext context)
public static javax.servlet.http.HttpServletResponse getHttpServletResponse(org.springframework.webflow.execution.RequestContext context)
public static String getHttpHeader(org.springframework.webflow.execution.RequestContext requestContext, String headerName)
public static void putAttributeInRequestScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue)
public static void putAttributeInExternalContext(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue)
public static void putAttribute(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue,
boolean storeInSession)
context - attributeKey - public static Object getAttributeFromRequestScope(org.springframework.webflow.execution.RequestContext context, String attributeKey)
public static Object getAttributeFromExternalContext(org.springframework.webflow.execution.RequestContext context, String attributeKey)
public static Object getAttribute(org.springframework.webflow.execution.RequestContext context, String attributeKey)
context - attributeKey - public static Object removeAttributeFromRequestScope(org.springframework.webflow.execution.RequestContext context, String attributeKey)
public static Object removeAttributeFromExternalContext(org.springframework.webflow.execution.RequestContext context, String attributeKey)
public static Object removeAttribute(org.springframework.webflow.execution.RequestContext context, String attributeKey)
context - attributeKey - public static void putAttributeInFlowScope(org.springframework.webflow.execution.RequestContext context,
String attributeKey,
Object attributeValue)
public static Object getAttributeFromFlowScope(org.springframework.webflow.execution.RequestContext context, String attributeKey)
public static Object removeAttributeFromFlowScope(org.springframework.webflow.execution.RequestContext context, String attributeKey)
public static String getParamFromRequestParameters(org.springframework.webflow.execution.RequestContext context, String attributeKey)
public static javax.servlet.http.Cookie readCookie(org.springframework.webflow.execution.RequestContext context,
String cookieName)
public static void addCookie(org.springframework.webflow.execution.RequestContext context,
String cookieName,
String cookieValue)
public static void removeCookie(org.springframework.webflow.execution.RequestContext context,
String cookieName)
Apache Fediz