com.atlassian.confluence.util
Class SeraphUtils

java.lang.Object
  extended by com.atlassian.confluence.util.SeraphUtils

public class SeraphUtils
extends java.lang.Object


Constructor Summary
SeraphUtils()
           
 
Method Summary
static com.atlassian.seraph.config.SecurityConfig getConfig(javax.servlet.http.HttpServletRequest request)
           
static java.lang.String getLinkLoginURL(javax.servlet.http.HttpServletRequest request)
          Get a login URL with the original request appended as the os_destination.
static java.lang.String getLinkLoginURL(javax.servlet.http.HttpServletRequest request, java.lang.String username)
          Get a login URL and append the given username so that it can be filled into the form if default login mechanism is used.
static java.lang.String getLinkLoginURLAndStripContextPath(javax.servlet.http.HttpServletRequest request)
           
static java.lang.String getLoginURL(javax.servlet.http.HttpServletRequest request)
           
static java.lang.String getOriginalURL(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeraphUtils

public SeraphUtils()
Method Detail

getLoginURL

public static java.lang.String getLoginURL(javax.servlet.http.HttpServletRequest request)

getLinkLoginURL

public static java.lang.String getLinkLoginURL(javax.servlet.http.HttpServletRequest request,
                                               java.lang.String username)
Get a login URL and append the given username so that it can be filled into the form if default login mechanism is used.

Parameters:
request -
username -
Returns:
See Also:
getLinkLoginURL(HttpServletRequest)

getLinkLoginURL

public static java.lang.String getLinkLoginURL(javax.servlet.http.HttpServletRequest request)
Get a login URL with the original request appended as the os_destination.

If the original request contains the special parameter called atl_after_login_redirect then this will be encoded as the os_destination instead of the original request.

Parameters:
request -
Returns:
a login link with the ultimate destination appended as os_destination.

getLinkLoginURLAndStripContextPath

public static java.lang.String getLinkLoginURLAndStripContextPath(javax.servlet.http.HttpServletRequest request)

getOriginalURL

public static java.lang.String getOriginalURL(javax.servlet.http.HttpServletRequest request)

getConfig

public static com.atlassian.seraph.config.SecurityConfig getConfig(javax.servlet.http.HttpServletRequest request)


Copyright © 2003-2014 Atlassian. All Rights Reserved.