java.lang.Object | |
↳ | com.atlassian.jira.functest.framework.util.url.URLUtil |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a token to a given url in the FIRST position
| |||||||||||
Compares 2 URL strings for equality.
| |||||||||||
The opposite of
encode(String) | |||||||||||
Can be called to encode a parameter part of an URL
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Adds a token to a given url in the FIRST position
token | the token |
---|---|
url | the url in question |
Compares 2 URL strings for equality. Two URLs will be equal, if their baseURL is the same, and they have the same parameters (regardless of ordering). The baseURL does not include contextPath.
For example: ViewWorkflowSteps.jspa?workflowMode=live&workflowName=Dude AND /jira/ViewWorkflowSteps.jspa?workflowName=Dude&workflowMode=live are deemed to be equal by this method. Amazingly enough I couldn't find an open source helper that already does this!controlLink | The link assumed to be correct. |
---|---|
testLink | The link being tested. |
Can be called to encode a parameter part of an URL
urlParam | the parameter to be plaved into a URL |
---|
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 |
url | the url to process |
---|---|
paramName | the name of the parameter to retrieve the value of |