|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.util.URL
Provides a generalised URL class which can handle and protocol type (unlike
java.net.URL)
Constructor Summary | |
URL()
Allows an empty URL to be created |
|
URL(java.lang.String url)
Create a URL based upon the given URL |
|
URL(URL other)
Deprecated. Please use clone() instead |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
compare(java.lang.String a,
java.lang.String b)
Compares two "Strings" |
boolean |
equals(java.lang.Object o)
Compares this with the given object |
static DynamicClass.PropertyHint |
getDynamicClassHints(java.lang.String prop)
Method to provide property hints to DynamicClass |
java.lang.String |
getHost()
Gets the host/IP address contained within the URL |
java.lang.String |
getPass()
Password associated with the URL (i.e. |
int |
getPort()
Gets the port associated with the URL |
java.lang.String |
getProtocol()
Gets the protocol associated with the URL |
java.lang.String |
getTarget()
Gets the "target" of the URL (or "path") |
java.lang.String |
getUser()
Username associated with the URL (i.e. |
int |
hashCode()
Generates hashcodes |
static void |
main(java.lang.String[] args)
|
void |
setHost(java.lang.String s)
Sets the host associated with the URL |
void |
setPass(java.lang.String s)
Sets the password associated with the URL (i.e. |
void |
setPort(int s)
Sets the port associated with the URL |
void |
setProtocol(java.lang.String s)
Sets the protocol of the URL |
void |
setTarget(java.lang.String s)
Sets the "target" (or "path") or the URL |
void |
setUser(java.lang.String s)
Sets the username associated with the URL (i.e. |
java.lang.String |
toString()
Converts back to a Stringified URL format |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public URL()
public URL(java.lang.String url)
url
- A URL to based the new URL object onpublic URL(URL other)
Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getProtocol()
public java.lang.String getHost()
public int getPort()
public java.lang.String getTarget()
public java.lang.String getUser()
public java.lang.String getPass()
public void setProtocol(java.lang.String s)
s
- The protocol (e.g. iiop, rmi, http etc...)public void setHost(java.lang.String s)
s
- A hostname/IP addresspublic void setPort(int s)
s
- The port-number, or -1 for nonepublic void setTarget(java.lang.String s)
s
- The path (without leading "/")public void setUser(java.lang.String s)
s
- Usernamepublic void setPass(java.lang.String s)
s
- Passwordpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean compare(java.lang.String a, java.lang.String b)
public int hashCode()
hashCode
in class java.lang.Object
public static DynamicClass.PropertyHint getDynamicClassHints(java.lang.String prop)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |