com.atlassian.crowd.plugin.rest.service.util
Class AuthenticatedApplicationUtil

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.service.util.AuthenticatedApplicationUtil

public class AuthenticatedApplicationUtil
extends Object

Utility for setting and retrieving the application name from the HttpServletRequest.

Since:
v2.1

Field Summary
static String APPLICATION_ATTRIBUTE_KEY
           
 
Method Summary
static String getAuthenticatedApplication(javax.servlet.http.HttpServletRequest request)
          Returns the application name from the HttpSession, or null if no application name was found.
static void setAuthenticatedApplication(javax.servlet.http.HttpServletRequest request, String applicationName)
          Sets the name of the authenticated application as an attribute of the HttpSession.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_ATTRIBUTE_KEY

public static final String APPLICATION_ATTRIBUTE_KEY
See Also:
Constant Field Values
Method Detail

getAuthenticatedApplication

public static String getAuthenticatedApplication(javax.servlet.http.HttpServletRequest request)
Returns the application name from the HttpSession, or null if no application name was found.

Parameters:
request - HTTP servlet request
Returns:
name of the authenticated application, null if no application name was found

setAuthenticatedApplication

public static void setAuthenticatedApplication(javax.servlet.http.HttpServletRequest request,
                                               String applicationName)
Sets the name of the authenticated application as an attribute of the HttpSession.

Parameters:
request - HTTP servlet request
applicationName - name of the authenticated application


Copyright © 2013 Atlassian. All Rights Reserved.