org.echarts.servlet.sip.features.registrar
Interface RegistrarServletToJava


public interface RegistrarServletToJava

Interface defining how RegistrarServlet calls out to its environment.


Method Summary
 void addBinding(java.lang.String addressOfRecord, Binding binding)
          Store an Address-of-record to contact address binding.
 Binding getBinding(java.lang.String addressOfRecord)
          Obtain contact address from Address of Record based on previously received REGISTER requests.
 void removeBinding(java.lang.String addressOfRecord)
          Remove the binding for an address-of-record if such a binding exists, otherwise do nothing.
 

Method Detail

getBinding

Binding getBinding(java.lang.String addressOfRecord)
Obtain contact address from Address of Record based on previously received REGISTER requests.

Parameters:
addressOfRecord - A string which contains the address of record
Returns:
contact The contact address based on previous registration. If no previous registration, or it has expired, then null is returned.

addBinding

void addBinding(java.lang.String addressOfRecord,
                Binding binding)
Store an Address-of-record to contact address binding. If no binding is currently associated with the specified address of record then a new binding record is created. If a binding is already associated with the specified address of record, then it is overwritten.

Parameters:
addressOfRecord - A string which contains the address of record
contactAddress - A string which contains the contact address

removeBinding

void removeBinding(java.lang.String addressOfRecord)
Remove the binding for an address-of-record if such a binding exists, otherwise do nothing.

Parameters:
addressOfRecord - A string which contains the address of record