public class Authority extends NetObject
Modifier and Type | Field and Description |
---|---|
protected HostPort |
hostPort
hostport field
|
protected UserInfo |
userInfo
userInfo field
|
CORE_PACKAGE, GRUU, LR, MADDR, METHOD, NET_PACKAGE, PARSER_PACKAGE, PHONE, SIP, SIPS, TCP, TLS, TRANSPORT, TTL, UDP, USER
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
Constructor and Description |
---|
Authority() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this object.
|
String |
encode()
Return the host name in encoded form.
|
StringBuilder |
encode(StringBuilder buffer)
Put the encoded version of this object in the given StringBuilder.
|
boolean |
equals(Object other)
retruns true if the two Objects are equals , false otherwise.
|
Host |
getHost()
Get the host name.
|
HostPort |
getHostPort()
get the hostPort member.
|
String |
getPassword()
Get password from the user info.
|
int |
getPort()
Get the port.
|
String |
getUser()
Get the user name if it exists.
|
UserInfo |
getUserInfo()
get the userInfo memnber.
|
int |
hashCode() |
void |
removePort()
remove the port.
|
void |
removeUserInfo()
Remove the user Infor.
|
void |
setHost(Host host)
set the host.
|
void |
setHostPort(HostPort h)
Set the hostPort member
|
void |
setPassword(String passwd)
set the password.
|
void |
setPort(int port)
Set the port.
|
void |
setUser(String user)
Set the user name of the userInfo member.
|
void |
setUserInfo(UserInfo u)
Set the userInfo member
|
debugDump, debugDump, match, toString
dbgPrint, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
protected HostPort hostPort
protected UserInfo userInfo
public String encode()
encode
in class GenericObject
public StringBuilder encode(StringBuilder buffer)
GenericObject
encode
in class GenericObject
public boolean equals(Object other)
public HostPort getHostPort()
public UserInfo getUserInfo()
public String getPassword()
public String getUser()
public Host getHost()
public int getPort()
public void removePort()
public void setPassword(String passwd)
passwd
- String to setpublic void setUser(String user)
user
- String to setpublic void setHost(Host host)
host
- Host to setpublic void setPort(int port)
port
- int to setpublic void setHostPort(HostPort h)
h
- HostPort to setpublic void setUserInfo(UserInfo u)
u
- UserInfo to setpublic void removeUserInfo()
public Object clone()
GenericObject
clone
in class GenericObject
Copyright © 2016. All Rights Reserved.