|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.monkeycoder.monkeynetwork.MonkeyUrl
public class MonkeyUrl
This is a self contained URL parsing class. It understands all standard URL formats including several partially formed versions. For partially formed URLs unspecified information defaults to an HTTP configuration unless otherwise specified.
| Constructor Summary | |
|---|---|
MonkeyUrl(java.lang.String inUrl)
Creates a MonkeyUrl using the supplied raw URL. |
|
MonkeyUrl(java.lang.String inUrl,
int inProtocol)
Creates a MonkeyUrl using the supplied raw URL and supplied default protocol specified by NetworkProtocol. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHost()
Gets the remote host of the URL. |
int |
getPort()
Gets the port on the remote host of the URL. |
int |
getProtocol()
Gets the protocol as an integer specified by NetworkProtocol. |
java.lang.String |
getUri()
Gets the request URI of the URL. |
java.lang.String |
getUrl()
Get the original raw URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonkeyUrl(java.lang.String inUrl)
inUrl - The raw string data of the URL.
public MonkeyUrl(java.lang.String inUrl,
int inProtocol)
inUrl - The raw string data of the URL.inProtocol - The new default protocol.NetworkProtocol| Method Detail |
|---|
public java.lang.String getUrl()
public int getProtocol()
NetworkProtocolpublic java.lang.String getHost()
public java.lang.String getUri()
public int getPort()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||