|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.util.url.URLUtil
public class URLUtil
Constructor Summary | |
---|---|
URLUtil()
|
Method Summary | |
---|---|
static String |
addXsrfToken(String token,
String url)
Adds a token to a given url in the FIRST position |
static boolean |
compareURLStrings(String controlLink,
String testLink)
Compares 2 URL strings for equality. |
static String |
decode(String urlParam)
The opposite of encode(String) |
static String |
encode(String urlParam)
Can be called to encode a parameter part of an URL |
static String |
getQueryParamValueFromUrl(String url,
String paramName)
|
static String |
getQueryParamValueFromUrl(URL url,
String paramName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLUtil()
Method Detail |
---|
public static boolean compareURLStrings(String controlLink, String testLink)
controlLink
- The link assumed to be correct.testLink
- The link being tested.
public static String getQueryParamValueFromUrl(String url, String paramName)
url
- the url to process e.g. http://www.atlassian.com/search?blablabla=haha&test=two
paramName
- the name of the parameter to retrieve the value of
public static String getQueryParamValueFromUrl(URL url, String paramName)
url
- the url to processparamName
- the name of the parameter to retrieve the value of
public static String addXsrfToken(String token, String url)
token
- the tokenurl
- the url in question
public static String encode(String urlParam)
urlParam
- the parameter to be plaved into a URL
public static String decode(String urlParam)
encode(String)
urlParam
- the param to decode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |