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 java.lang.Object

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

Since:
v2.1

Method Summary
static java.lang.String getAuthenticatedApplication(javax.servlet.http.HttpServletRequest request)
          Returns the application name from the HttpSession.
static void setAuthenticatedApplication(javax.servlet.http.HttpServletRequest request, java.lang.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
 

Method Detail

getAuthenticatedApplication

public static java.lang.String getAuthenticatedApplication(javax.servlet.http.HttpServletRequest request)
Returns the application name from the HttpSession.

Parameters:
request - HTTP servlet request
Returns:
name of the authenticated application
Throws:
java.lang.IllegalStateException - if no application name was found

setAuthenticatedApplication

public static void setAuthenticatedApplication(javax.servlet.http.HttpServletRequest request,
                                               java.lang.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 © 2010 Atlassian. All Rights Reserved.