public class ServletUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IE_USER_AGENT_HEADER_LOWER_CASE |
static String |
SEMI_COLON |
static String |
USER_AGENT |
static String |
VIEW_REQUEST_ATTRIBUTE_NAME |
| Constructor and Description |
|---|
ServletUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Float |
getInternetExplorerVersion(javax.servlet.http.HttpServletRequest request)
Attempts to determine the Internet Explorer version specified in the User-Agent header in the
supplied
HttpServletRequest. |
static javax.servlet.http.HttpServletRequest |
getRequest()
Retrieves the http servlet object heard by the view implementation.
|
static javax.servlet.http.HttpSession |
getSession()
Returns the session for the current http session.
|
static javax.servlet.http.HttpSession |
getSession(boolean create)
Returns the session for the current http session.
|
static void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the http servlet request onto the spring request attributes
|
public static final String VIEW_REQUEST_ATTRIBUTE_NAME
public static final String IE_USER_AGENT_HEADER_LOWER_CASE
public static final String USER_AGENT
public static final String SEMI_COLON
public static final Float getInternetExplorerVersion(javax.servlet.http.HttpServletRequest request)
Attempts to determine the Internet Explorer version specified in the User-Agent header in the
supplied HttpServletRequest. If the browser is not a version of Internet Explorer (or there
were problems parsing the header) then null null is returned.
request - The current HttpServletRequest to retrieve the User-Agent string from.Float containing the Internet Explorer version or null if the browser
was not a version of Internet Explorer or there were problems parsing the header.public static void setRequest(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequestpublic static javax.servlet.http.HttpServletRequest getRequest()
public static javax.servlet.http.HttpSession getSession()
public static javax.servlet.http.HttpSession getSession(boolean create)
create - whether to createCopyright © 2005–2016 Alfresco Software. All rights reserved.