Class AuthorizedUrlService
- java.lang.Object
-
- fr.paris.lutece.plugins.verifybackurl.service.AuthorizedUrlService
-
public class AuthorizedUrlService extends java.lang.ObjectThe Class AuthorizedUrlService.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizedUrlServicegetInstance()Get instance of AuthorizedUrlServicejava.lang.StringgetName(java.lang.String url)Return the name of the urlAuthorizedjava.lang.StringgetNameByApplicationCode(java.lang.String strApplicationCode, java.lang.String url)Return the name of the urlAuthorizedjava.lang.StringgetServiceBackUrl(javax.servlet.http.HttpServletRequest request)return the service back url if the url is authorizedjava.lang.StringgetServiceBackUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strBackUrlParameter)return the service back url if the url is authorizedjava.lang.StringgetServiceBackUrl(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.StringgetServiceBackUrlEncoded(javax.servlet.http.HttpServletRequest request)return the service back url encode if the url is authorized and the decode base 64 property is enablejava.lang.StringgetServiceBackUrlEncoded(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 enablejava.lang.StringgetServiceBackUrlEncoded(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
-
-
-
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 Codeurl-- 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 requeststrBackUrlParameter- 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 requeststrBackUrlParameter- the parameter name of the service back urlstrBackUrlSessionName- 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 requeststrBackUrlParameter- 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 requeststrBackUrlParameter- 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 requeststrBackUrlParameter- the parameter name of the service back urlstrBackUrlSessionName- The session attribute name who is stored the back url- Returns:
- the service back url if the url is authorized
-
-