public class WebAddress extends Object
Constructor and Description |
---|
WebAddress(String address)
parses given uriString.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthInfo() |
String |
getHost() |
String |
getPath() |
int |
getPort() |
String |
getScheme() |
void |
setAuthInfo(String authInfo) |
void |
setHost(String host) |
void |
setPath(String path) |
void |
setPort(int port) |
void |
setScheme(String scheme) |
String |
toString()
Returns a string representation of the object.
|
public WebAddress(String address) throws ParseException
ParseException
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public void setScheme(String scheme)
public String getScheme()
public void setHost(String host)
public String getHost()
public void setPort(int port)
public int getPort()
public void setPath(String path)
public String getPath()
public void setAuthInfo(String authInfo)
public String getAuthInfo()