public final class URLCreator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HTTP_PTOTOCOL
String constant for the HTTP protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static java.net.URL |
create(java.lang.String host,
java.lang.String path)
Create a HTTP URL with the given parameters.
|
static java.net.URL |
create(java.lang.String requestHost,
java.lang.String requestUri,
java.lang.String pathToAppend)
Create a HTTP URL with the given parameters.
|
public static final java.lang.String HTTP_PTOTOCOL
public static java.net.URL create(java.lang.String host,
java.lang.String path)
throws java.net.MalformedURLException
host - the host namepath - the url pathjava.net.MalformedURLException - if the URL cannot be createdpublic static java.net.URL create(java.lang.String requestHost,
java.lang.String requestUri,
java.lang.String pathToAppend)
throws java.net.MalformedURLException
requestHost - the Host request-headerrequestUri - the uri the request was issued atpathToAppend - the path to append to the request urijava.net.MalformedURLException - if the URL cannot be created