Class AuthorizedUrlService
java.lang.Object
fr.paris.lutece.plugins.verifybackurl.service.AuthorizedUrlService
The Class AuthorizedUrlService.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizedUrlServiceDeprecated, for removal: This API element is subject to removal in a future version.Return the name of the urlAuthorizedgetNameByApplicationCode(String strApplicationCode, String url) Return the name of the urlAuthorizedgetServiceBackUrl(jakarta.servlet.http.HttpServletRequest request) return the service back url if the url is authorizedgetServiceBackUrl(jakarta.servlet.http.HttpServletRequest request, String strBackUrlParameter) return the service back url if the url is authorizedgetServiceBackUrl(jakarta.servlet.http.HttpServletRequest request, String strBackUrlParameter, String strBackUrlSessionName) return the service back url if the url is authorized.getServiceBackUrlEncoded(jakarta.servlet.http.HttpServletRequest request) return the service back url encode if the url is authorized and the decode base 64 property is enablegetServiceBackUrlEncoded(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 enablegetServiceBackUrlEncoded(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
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theAuthorizedUrlServiceinstance. This method will be removed in future versions.Get instance of AuthorizedUrlService- Returns:
- instance
-
getName
Return the name of the urlAuthorized- Parameters:
url-- Returns:
- the name of the UrlAuthorized
-
getNameByApplicationCode
Return the name of the urlAuthorized- Parameters:
strApplicationCode- the application Codeurl-- Returns:
- the name of the UrlAuthorized
-
getServiceBackUrl
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 requeststrBackUrlParameter- 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 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
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 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 requeststrBackUrlParameter- 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 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
-
@Injectto obtain theAuthorizedUrlServiceinstance.