NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.address
Class Authority

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sip.address.NetObject
          extended by gov.nist.javax.sip.address.Authority
All Implemented Interfaces:
Serializable, Cloneable

public class Authority
extends NetObject

Authority part of a URI structure. Section 3.2.2 RFC2396

Version:
1.2 $Revision: 1.9 $ $Date: 2009/07/17 18:57:21 $
Author:
M. Ranganathan
See Also:
Serialized Form

Constructor Summary
Authority()
           
 
Method Summary
 Object clone()
          Clones this object.
 String encode()
          Return the host name in encoded form.
 StringBuffer encode(StringBuffer buffer)
          Put the encoded version of this object in the given StringBuffer.
 boolean equals(Object other)
          retruns true if the two Objects are equals , false otherwise.
 gov.nist.core.Host getHost()
          Get the host name.
 gov.nist.core.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.
 void removePort()
          remove the port.
 void removeUserInfo()
          Remove the user Infor.
 void setHost(gov.nist.core.Host host)
          set the host.
 void setHostPort(gov.nist.core.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
 
Methods inherited from class gov.nist.javax.sip.address.NetObject
debugDump, debugDump, match, toString
 
Methods inherited from class gov.nist.core.GenericObject
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Authority

public Authority()
Method Detail

encode

public String encode()
Return the host name in encoded form.

Specified by:
encode in class gov.nist.core.GenericObject
Returns:
encoded string (does the same thing as toString)

encode

public StringBuffer encode(StringBuffer buffer)
Description copied from class: gov.nist.core.GenericObject
Put the encoded version of this object in the given StringBuffer.

Overrides:
encode in class gov.nist.core.GenericObject

equals

public boolean equals(Object other)
retruns true if the two Objects are equals , false otherwise.

Overrides:
equals in class NetObject
Parameters:
other - Object to test.
Returns:
boolean

getHostPort

public gov.nist.core.HostPort getHostPort()
get the hostPort member.

Returns:
HostPort

getUserInfo

public UserInfo getUserInfo()
get the userInfo memnber.

Returns:
UserInfo

getPassword

public String getPassword()
Get password from the user info.

Returns:
String

getUser

public String getUser()
Get the user name if it exists.

Returns:
String user or null if not set.

getHost

public gov.nist.core.Host getHost()
Get the host name.

Returns:
Host (null if not set)

getPort

public int getPort()
Get the port.

Returns:
int port (-1) if port is not set.

removePort

public void removePort()
remove the port.


setPassword

public void setPassword(String passwd)
set the password.

Parameters:
passwd - String to set

setUser

public void setUser(String user)
Set the user name of the userInfo member.

Parameters:
user - String to set

setHost

public void setHost(gov.nist.core.Host host)
set the host.

Parameters:
host - Host to set

setPort

public void setPort(int port)
Set the port.

Parameters:
port - int to set

setHostPort

public void setHostPort(gov.nist.core.HostPort h)
Set the hostPort member

Parameters:
h - HostPort to set

setUserInfo

public void setUserInfo(UserInfo u)
Set the userInfo member

Parameters:
u - UserInfo to set

removeUserInfo

public void removeUserInfo()
Remove the user Infor.


clone

public Object clone()
Description copied from class: gov.nist.core.GenericObject
Clones this object.

Overrides:
clone in class gov.nist.core.GenericObject

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.