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