|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.http.server.util.URLCreator
public final class URLCreator
Utility class to create URLs in Httphandlers and RequestHandlers.
| Field Summary | |
|---|---|
static java.lang.String |
HTTP_PTOTOCOL
String constant for the HTTP protocol. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HTTP_PTOTOCOL
| Method Detail |
|---|
public static java.net.URL create(java.lang.String host,
java.lang.String path)
throws java.net.MalformedURLException
host - the host namepath - the url path
java.net.MalformedURLException - if the URL cannot be created
public 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 uri
java.net.MalformedURLException - if the URL cannot be created
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||