Class AuthorizedUrlService

java.lang.Object
fr.paris.lutece.plugins.verifybackurl.service.AuthorizedUrlService

@ApplicationScoped public class AuthorizedUrlService extends Object
The Class AuthorizedUrlService.
  • Method Details

    • getInstance

      @Deprecated(since="8.0", forRemoval=true) public static AuthorizedUrlService getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use @Inject to obtain the AuthorizedUrlService instance. This method will be removed in future versions.
      Get instance of AuthorizedUrlService
      Returns:
      instance
    • getName

      public String getName(String url)
      Return the name of the urlAuthorized
      Parameters:
      url -
      Returns:
      the name of the UrlAuthorized
    • getNameByApplicationCode

      public String getNameByApplicationCode(String strApplicationCode, String url)
      Return the name of the urlAuthorized
      Parameters:
      strApplicationCode - the application Code
      url -
      Returns:
      the name of the UrlAuthorized
    • getServiceBackUrl

      public String getServiceBackUrl(jakarta.servlet.http.HttpServletRequest request)
      return the service back url if the url is authorized
      Parameters:
      request - the request
      Returns:
      the service back url if the url is authorized
    • getServiceBackUrl

      public String getServiceBackUrl(jakarta.servlet.http.HttpServletRequest request, String strBackUrlParameter)
      return the service back url if the url is authorized
      Parameters:
      request - the request
      strBackUrlParameter - the parameter name of the service back url
      Returns:
      the service back url if the url is authorized
    • getServiceBackUrl

      public String getServiceBackUrl(jakarta.servlet.http.HttpServletRequest request, String strBackUrlParameter, String strBackUrlSessionName)
      return the service back url if the url is authorized.
      Parameters:
      request - the request
      strBackUrlParameter - the parameter name of the service back url
      strBackUrlSessionName - The session attribute name who is stored the back url
      Returns:
      the service back url if the url is authorized
    • getServiceBackUrlEncoded

      public String getServiceBackUrlEncoded(jakarta.servlet.http.HttpServletRequest request)
      return the service back url encode if the url is authorized and the decode base 64 property is enable
      Parameters:
      request - the request
      strBackUrlParameter - the parameter name of the service back url
      Returns:
      the service back url if the url is authorized
    • getServiceBackUrlEncoded

      public String getServiceBackUrlEncoded(jakarta.servlet.http.HttpServletRequest request, String strBackUrlParameter)
      return the service back url encode if the url is authorized and the decode base 64 property is enable
      Parameters:
      request - the request
      strBackUrlParameter - the parameter name of the service back url
      Returns:
      the service back url if the url is authorized
    • getServiceBackUrlEncoded

      public String getServiceBackUrlEncoded(jakarta.servlet.http.HttpServletRequest request, String strBackUrlParameter, String strBackUrlSessionName)
      return the service back url encode if the url is authorized and the decode base 64 property is enable
      Parameters:
      request - the request
      strBackUrlParameter - the parameter name of the service back url
      strBackUrlSessionName - The session attribute name who is stored the back url
      Returns:
      the service back url if the url is authorized