com.atlassian.jira.web.action
Class AjaxHeaders
java.lang.Object
com.atlassian.jira.web.action.AjaxHeaders
public class AjaxHeaders
- extends Object
Utility class for dealing with AJAX request headers.
- Since:
- v5.0
Method Summary |
static boolean |
isPjaxRequest(javax.servlet.http.HttpServletRequest request)
Returns true if the HTTP request contains the header. |
static boolean |
requestUsernameMatches(javax.servlet.http.HttpServletRequest request,
com.atlassian.crowd.embedded.api.User user)
Checks whether the effective user has change between the time when the view issue page was loaded and the time
when the current request was made (this can happen due to session timeouts, logging out in another window, etc). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxHeaders
public AjaxHeaders()
requestUsernameMatches
public static boolean requestUsernameMatches(javax.servlet.http.HttpServletRequest request,
com.atlassian.crowd.embedded.api.User user)
- Checks whether the effective user has change between the time when the view issue page was loaded and the time
when the current request was made (this can happen due to session timeouts, logging out in another window, etc).
This method looks at the
request header to determine the user that was
effective at the time the page was loaded. If the request header is not present, then that is considered a match
with anything.
- Parameters:
request
- a HttpServletRequestuser
- a User
- Returns:
- true if the request
isPjaxRequest
public static boolean isPjaxRequest(javax.servlet.http.HttpServletRequest request)
- Returns true if the HTTP request contains the header.
- Parameters:
request
- a JiraWebActionSupport
- Returns:
- a boolean
Copyright © 2002-2013 Atlassian. All Rights Reserved.