Class AuthorizedUrlService
- java.lang.Object
-
- fr.paris.lutece.plugins.verifybackurl.service.AuthorizedUrlService
-
public class AuthorizedUrlService extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizedUrlServicegetInstance()Get instance of AuthorizedUrlServiceStringgetName(String url)Return the name of the urlAuthorizedStringgetNameByApplicationCode(String strApplicationCode, String url)Return the name of the urlAuthorizedStringgetServiceBackUrl(javax.servlet.http.HttpServletRequest request)return the service back url if the url is authorizedStringgetServiceBackUrl(javax.servlet.http.HttpServletRequest request, String strBackUrlParameter)return the service back url if the url is authorizedStringgetServiceBackUrl(javax.servlet.http.HttpServletRequest request, String strBackUrlParameter, String strBackUrlSessionName)return the service back url if the url is authorized
-
-
-
Method Detail
-
getInstance
public static AuthorizedUrlService getInstance()
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 Codeurl-- Returns:
- the name of the UrlAuthorized
-
getServiceBackUrl
public 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 String getServiceBackUrl(javax.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(javax.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
-
-