public class VerifiyBackUrlUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.util.PathMatcher |
PATH_MATCHER |
| Constructor and Description |
|---|
VerifiyBackUrlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareBaseUrl(String url1,
String url2)
Compare to base url
|
static boolean |
containsNoUnauthorizedHTML(String strBackUrl)
Test if the BacUrl is a valid url
|
static boolean |
containsUnauthorizedCharactersDomain(String strBackUrl)
Test if the BackUrl is a valid url
|
static void |
dropBackUrlInSession(javax.servlet.http.HttpServletRequest request,
String strSessionAttributeName)
Drop Service in session
|
static String |
encodeUrl(String strUrl)
encode url in base64
|
static String |
getBackUrlInSession(javax.servlet.http.HttpServletRequest request,
String strSessionAttributeName)
Return the back url in session
|
static String |
getBaseUrl(String strUrl)
Get base url for input Url : http://site.paris.mdp/webapp/jsp ==> site.paris.mdp/webapp
|
static boolean |
isValidBackUrl(String strBackUrl)
Test if the BacUrl is a valid url
|
static void |
storeBackUrlInSession(javax.servlet.http.HttpServletRequest request,
String strBackUrl,
String strSessionAttributeName)
Store service in session
|
public static boolean isValidBackUrl(String strBackUrl)
strBackUrl - the back url to testpublic static boolean containsNoUnauthorizedHTML(String strBackUrl)
strBackUrl - the back url to testpublic static boolean containsUnauthorizedCharactersDomain(String strBackUrl)
strBackUrl - the back url to testpublic static boolean compareBaseUrl(String url1, String url2)
url1 - url2 - public static String getBaseUrl(String strUrl)
strUrl - public static void storeBackUrlInSession(javax.servlet.http.HttpServletRequest request,
String strBackUrl,
String strSessionAttributeName)
request - the HttpServletRequeststrBackUrl - the backUrl to store in sessionstrSessionAttributeName - the strSessionAttributeName who must store the backurlpublic static void dropBackUrlInSession(javax.servlet.http.HttpServletRequest request,
String strSessionAttributeName)
request - the HttpServletrequeststrSessionAttributeName - the strSessionAttributeName who must store the backurlpublic static String getBackUrlInSession(javax.servlet.http.HttpServletRequest request, String strSessionAttributeName)
strSessionAttributeName - the strSessionAttributeName who must store the backurlrequest - the HttpServletRequestCopyright © 2024 City of Paris. All rights reserved.