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 void |
dropBackUrlInSession(javax.servlet.http.HttpServletRequest request)
Drop Service 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)
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 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)
request - the HttpServletRequeststrBackUrl - the backUrl to store in sessionpublic static void dropBackUrlInSession(javax.servlet.http.HttpServletRequest request)
request - the HttpServletrequestCopyright © 2017 City of Paris. All rights reserved.