Class AuthorizedUrlService


  • public class AuthorizedUrlService
    extends java.lang.Object
    The Class AuthorizedUrlService.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AuthorizedUrlService getInstance()
      Get instance of AuthorizedUrlService
      java.lang.String getName​(java.lang.String url)
      Return the name of the urlAuthorized
      java.lang.String getNameByApplicationCode​(java.lang.String strApplicationCode, java.lang.String url)
      Return the name of the urlAuthorized
      java.lang.String getServiceBackUrl​(javax.servlet.http.HttpServletRequest request)
      return the service back url if the url is authorized
      java.lang.String getServiceBackUrl​(javax.servlet.http.HttpServletRequest request, java.lang.String strBackUrlParameter)
      return the service back url if the url is authorized
      java.lang.String getServiceBackUrl​(javax.servlet.http.HttpServletRequest request, java.lang.String strBackUrlParameter, java.lang.String strBackUrlSessionName)
      return the service back url if the url is authorized.
      java.lang.String getServiceBackUrlEncoded​(javax.servlet.http.HttpServletRequest request)
      return the service back url encode if the url is authorized and the decode base 64 property is enable
      java.lang.String getServiceBackUrlEncoded​(javax.servlet.http.HttpServletRequest request, java.lang.String strBackUrlParameter)
      return the service back url encode if the url is authorized and the decode base 64 property is enable
      java.lang.String getServiceBackUrlEncoded​(javax.servlet.http.HttpServletRequest request, java.lang.String strBackUrlParameter, java.lang.String strBackUrlSessionName)
      return the service back url encode if the url is authorized and the decode base 64 property is enable
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static AuthorizedUrlService getInstance()
        Get instance of AuthorizedUrlService
        Returns:
        instance
      • getName

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

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

        public java.lang.String getServiceBackUrl​(javax.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 java.lang.String getServiceBackUrl​(javax.servlet.http.HttpServletRequest request,
                                                  java.lang.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 java.lang.String getServiceBackUrl​(javax.servlet.http.HttpServletRequest request,
                                                  java.lang.String strBackUrlParameter,
                                                  java.lang.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 java.lang.String getServiceBackUrlEncoded​(javax.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 java.lang.String getServiceBackUrlEncoded​(javax.servlet.http.HttpServletRequest request,
                                                         java.lang.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 java.lang.String getServiceBackUrlEncoded​(javax.servlet.http.HttpServletRequest request,
                                                         java.lang.String strBackUrlParameter,
                                                         java.lang.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