org.echarts.servlet.sip.appRouter.DFCRouterImpl
Class TerminatingAddress

java.lang.Object
  extended by org.echarts.servlet.sip.appRouter.DFCRouterImpl.TerminatingAddress
All Implemented Interfaces:
java.io.Serializable, Address

public class TerminatingAddress
extends java.lang.Object
implements Address

Wrapper class defining DFC Router terminating (aka target) address.

Author:
khp
See Also:
Serialized Form

Constructor Summary
TerminatingAddress(SipServletRequest r)
          Constructor for TerminatingAddress
 
Method Summary
 URI getSubscriberURI()
          Retrieve the subscriber URI associated with this terminating address.
 boolean hasChanged(java.lang.String oldAddressName)
          Determine if a terminating address has changed from a previously seen terminating address.
 java.lang.String toCompareString()
          Change the TerminatingAddress object into a String represenation suitable for comparing with another (previous) TerminatingAddress object.
 java.lang.String toString()
          Convert the TerminatingAddress object into a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TerminatingAddress

public TerminatingAddress(SipServletRequest r)
Constructor for TerminatingAddress

Parameters:
r - - SipServletRequest message from which the Request-URI is extracted
Method Detail

toCompareString

public java.lang.String toCompareString()
Change the TerminatingAddress object into a String represenation suitable for comparing with another (previous) TerminatingAddress object. To make such a comparison, it is necessary to remove certain parameters that may be different between two TerminatingAddress objects but which don't represent a true difference between them.

Specified by:
toCompareString in interface Address

toString

public java.lang.String toString()
Convert the TerminatingAddress object into a String

Specified by:
toString in interface Address
Overrides:
toString in class java.lang.Object

hasChanged

public boolean hasChanged(java.lang.String oldAddressName)
Determine if a terminating address has changed from a previously seen terminating address. Note that this test uses toCompareString() to make the comparison.

Specified by:
hasChanged in interface Address
Returns:
boolean true if the terminating address has changed, otherwise false
See Also:
toCompareString()

getSubscriberURI

public URI getSubscriberURI()
Retrieve the subscriber URI associated with this terminating address.

Specified by:
getSubscriberURI in interface Address
Returns:
URI subscriber URI