|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.functest.framework.util.url.ParsedURL
public class ParsedURL
A class that can parse and normalise a URL and its parameters
| Constructor Summary | |
|---|---|
ParsedURL(String url)
Construct a parsed URL |
|
| Method Summary | |
|---|---|
String |
getFile()
Gets the file name of this URL. |
String |
getHost()
Gets the host name of this URL |
List<String> |
getMultiQueryParameter(String name)
|
Map<String,List<String>> |
getMultiQueryParameters()
|
Map<String,List<String>> |
getMultiQueryParameters(String... names)
|
Map<String,List<String>> |
getMultiQueryParametersIgnoring(String... names)
|
String |
getPath()
Gets the path part of this URL. |
int |
getPort()
Gets the port number of this URL. |
String |
getProtocol()
Gets the protocol name of this URL. |
String |
getQuery()
Gets the query part of this URL. |
String |
getQueryParameter(String name)
|
Map<String,String> |
getQueryParameters()
|
Map<String,String> |
getQueryParameters(String... names)
|
Map<String,String> |
getQueryParametersIgnoring(String... names)
|
String |
toString()
Returns the URL in full string form |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParsedURL(String url)
url - String| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getProtocol()
URL.
URL.public String getHost()
URL
URL.public int getPort()
URL.
public String getFile()
URL. The returned file portion will be the same as
getPath(), plus the concatenation of the value of getQuery(), if any. If there is
no query portion, this method and getPath() will return identical results.
URL, or an empty string if one does not existpublic String getPath()
URL.
URL, or an empty string if one does not existpublic String getQuery()
URL.
URL, or null if one does not existpublic Map<String,String> getQueryParameters()
public Map<String,String> getQueryParameters(String... names)
names - the query parameter names to include
public Map<String,String> getQueryParametersIgnoring(String... names)
names - the query parameter names to ignore
public String getQueryParameter(String name)
public Map<String,List<String>> getMultiQueryParameters()
public Map<String,List<String>> getMultiQueryParameters(String... names)
public Map<String,List<String>> getMultiQueryParametersIgnoring(String... names)
public List<String> getMultiQueryParameter(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||