java.lang.Object | +--javax.mail.URLName
The name of a URL. This class represents a URL name and also provides the basic parsing functionality to parse most internet standard URL schemes.
Note that this class differs fromjava.net.URL
in that this class just represents the name of a URL, it does not model the connection to a URL.
fullURL The full version of the URL |
URLName(java.lang.String url) Construct a URLName from the string. | |
URLName(java.lang.String protocol, java.lang.String host, int port, java.lang.String file, java.lang.String username, java.lang.String password) Creates a URLName object from the specified protocol, host, port number, file, username, and password. | |
URLName(java.net.URL url) Construct a URLName from a java.net.URL object. |
equals(java.lang.Object obj) Compares two URLNames. | |
getFile() Returns the file name of this URLName. | |
getHost() Returns the host of this URLName. | |
getPassword() Returns the password of this URLName. | |
getPort() Returns the port number of this URLName. | |
getProtocol() Returns the protocol of this URLName. | |
getRef() Returns the reference of this URLName. | |
getURL() Constructs a URL from the URLName. | |
getUsername() Returns the user name of this URLName. | |
hashCode() Compute the hash code for this URLName. | |
parseString(java.lang.String url) Method which does all of the work of parsing the string. | |
toString() Constructs a string representation of this URLName. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
protected java.lang.StringfullURL
publicURLName(java.lang.String protocol, java.lang.String host, int port, java.lang.String file, java.lang.String username, java.lang.String password)
publicURLName(java.net.URL url)
publicURLName(java.lang.String url)
public java.lang.StringtoString()
toString
in classjava.lang.Object
protected voidparseString(java.lang.String url)
public intgetPort()
public java.lang.StringgetProtocol()
public java.lang.StringgetFile()
public java.lang.StringgetRef()
public java.lang.StringgetHost()
public java.lang.StringgetUsername()
public java.lang.StringgetPassword()
public java.net.URLgetURL() throws java.net.MalformedURLException
public booleanequals(java.lang.Object obj)
equals
in classjava.lang.Object
public inthashCode()
hashCode
in classjava.lang.Object