|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Location
This interface is used to specify how the ProxyJiplet interacts with the location database. The ProxyJiplet provides proxy functionality to the jiplet applications. For standard proxy operations, you can choose to write use the ProxyJiplet instead of writing your own. When a SIP request message is received, the jiplet needs access to a location database where all registered users' location is stored in order to route the message to appropriate locations. You can create a class that implement this interface in order to provide the necessary access to the location database. As an init param to the jiplet, you specify this location database access class. When a request message arrives, the jiplet calls the getLocation() method to obtain the location information.
| Method Summary | |
|---|---|
java.util.ArrayList |
getLocation(javax.sip.address.URI address)
This method is called by the jiplet to look up an user's location. |
void |
init(java.lang.String param)
This method is called by the ProxyJiplet when the class implementing this interface is instantiated. |
void |
setAddressFactory(javax.sip.address.AddressFactory address)
This method is used by the ProxyJiplet to set the JAIN-SIP address factory. |
void |
setHeaderFactory(javax.sip.header.HeaderFactory header)
This method is used by the ProxyJiplet to set the JAIN-SIP header factory. |
void |
setMessageFactory(javax.sip.message.MessageFactory message)
This method is used by the ProxyJiplet to set the JAIN-SIP message factory. |
| Method Detail |
|---|
void init(java.lang.String param)
throws JipletException
param - the param specified in the init-param of the ProxyJiplet with
name locationRegisterParam.
JipletExceptionjava.util.ArrayList getLocation(javax.sip.address.URI address)
address - The URI of the TO header that is received in the SIP message.
void setAddressFactory(javax.sip.address.AddressFactory address)
address - void setHeaderFactory(javax.sip.header.HeaderFactory header)
header - void setMessageFactory(javax.sip.message.MessageFactory message)
message -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||