public class UrlHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
UrlHelper.Parameter |
| Constructor and Description |
|---|
UrlHelper() |
UrlHelper(String url) |
UrlHelper(String protocol,
String host,
int port,
String path,
String reference) |
UrlHelper(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String paramString) |
void |
addParameter(String paramName,
String paramValue) |
void |
addParameters(Map<String,String> parameters) |
String |
getHost() |
String |
getParameter(String paramName) |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
String |
getQuery() |
String |
getReference() |
String |
parametersToString() |
void |
removeParameter(String paramName) |
void |
removeParameters() |
void |
setHost(String host) |
void |
setPath(String path) |
void |
setPort(int port) |
void |
setProtocol(String protocol) |
void |
setQuery(String query) |
void |
setReference(String reference) |
String |
toString() |
public UrlHelper()
public UrlHelper(URL url)
public UrlHelper(String url)
public void setQuery(String query)
public void removeParameter(String paramName)
public void removeParameters()
public void addParameter(String paramString)
public String parametersToString()
public String getHost()
public void setHost(String host)
host - The host to set.public String getPath()
public void setPath(String path)
path - The path to set.public int getPort()
public void setPort(int port)
port - The port to set.public String getProtocol()
public void setProtocol(String protocol)
protocol - The protocol to set.public String getReference()
public void setReference(String reference)
reference - The reference to set.public String getQuery()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.