xref: /aosp_15_r20/external/nist-sip/java/javax/sip/SipProvider.java (revision 4dd4ff528b8b07036318f5d4191b0009f17bc7b3)
1*4dd4ff52SXin Li package javax.sip;
2*4dd4ff52SXin Li 
3*4dd4ff52SXin Li import java.util.TooManyListenersException;
4*4dd4ff52SXin Li import javax.sip.header.CallIdHeader;
5*4dd4ff52SXin Li import javax.sip.message.Request;
6*4dd4ff52SXin Li import javax.sip.message.Response;
7*4dd4ff52SXin Li 
8*4dd4ff52SXin Li public interface SipProvider {
9*4dd4ff52SXin Li     /**
10*4dd4ff52SXin Li      * @deprecated
11*4dd4ff52SXin Li      * @see #addListeningPoint(ListeningPoint)
12*4dd4ff52SXin Li      */
setListeningPoint(ListeningPoint listeningPoint)13*4dd4ff52SXin Li     void setListeningPoint(ListeningPoint listeningPoint)
14*4dd4ff52SXin Li             throws ObjectInUseException;
addListeningPoint(ListeningPoint listeningPoint)15*4dd4ff52SXin Li     void addListeningPoint(ListeningPoint listeningPoint)
16*4dd4ff52SXin Li             throws ObjectInUseException;
removeListeningPoint(ListeningPoint listeningPoint)17*4dd4ff52SXin Li     void removeListeningPoint(ListeningPoint listeningPoint)
18*4dd4ff52SXin Li             throws ObjectInUseException;
removeListeningPoints()19*4dd4ff52SXin Li     void removeListeningPoints();
20*4dd4ff52SXin Li 
21*4dd4ff52SXin Li     /**
22*4dd4ff52SXin Li      * @deprecated
23*4dd4ff52SXin Li      * @see #getListeningPoints()
24*4dd4ff52SXin Li      */
getListeningPoint()25*4dd4ff52SXin Li     ListeningPoint getListeningPoint();
getListeningPoint(String transport)26*4dd4ff52SXin Li     ListeningPoint getListeningPoint(String transport);
getListeningPoints()27*4dd4ff52SXin Li     ListeningPoint[] getListeningPoints();
28*4dd4ff52SXin Li 
addSipListener(SipListener sipListener)29*4dd4ff52SXin Li     void addSipListener(SipListener sipListener)
30*4dd4ff52SXin Li             throws TooManyListenersException;
removeSipListener(SipListener sipListener)31*4dd4ff52SXin Li     void removeSipListener(SipListener sipListener);
32*4dd4ff52SXin Li 
getNewCallId()33*4dd4ff52SXin Li     CallIdHeader getNewCallId();
34*4dd4ff52SXin Li 
getNewClientTransaction(Request request)35*4dd4ff52SXin Li     ClientTransaction getNewClientTransaction(Request request)
36*4dd4ff52SXin Li             throws TransactionUnavailableException;
getNewServerTransaction(Request request)37*4dd4ff52SXin Li     ServerTransaction getNewServerTransaction(Request request)
38*4dd4ff52SXin Li             throws TransactionAlreadyExistsException,
39*4dd4ff52SXin Li             TransactionUnavailableException;
40*4dd4ff52SXin Li 
getNewDialog(Transaction transaction)41*4dd4ff52SXin Li     Dialog getNewDialog(Transaction transaction) throws SipException;
42*4dd4ff52SXin Li 
isAutomaticDialogSupportEnabled()43*4dd4ff52SXin Li     boolean isAutomaticDialogSupportEnabled();
setAutomaticDialogSupportEnabled(boolean flag)44*4dd4ff52SXin Li     void setAutomaticDialogSupportEnabled(boolean flag);
45*4dd4ff52SXin Li 
getSipStack()46*4dd4ff52SXin Li     SipStack getSipStack();
47*4dd4ff52SXin Li 
sendRequest(Request request)48*4dd4ff52SXin Li     void sendRequest(Request request) throws SipException;
sendResponse(Response response)49*4dd4ff52SXin Li     void sendResponse(Response response) throws SipException;
50*4dd4ff52SXin Li }
51*4dd4ff52SXin Li 
52