1 package javax.sip; 2 3 import java.io.Serializable; 4 import java.text.ParseException; 5 import java.util.Iterator; 6 import javax.sip.address.Address; 7 import javax.sip.header.CallIdHeader; 8 import javax.sip.message.Request; 9 import javax.sip.message.Response; 10 11 public interface Dialog extends Serializable { getApplicationData()12 Object getApplicationData(); setApplicationData(Object applicationData)13 void setApplicationData(Object applicationData); 14 getCallId()15 CallIdHeader getCallId(); getDialogId()16 String getDialogId(); 17 18 /** 19 * @deprecated 20 */ getFirstTransaction()21 Transaction getFirstTransaction(); 22 getLocalParty()23 Address getLocalParty(); 24 25 /** 26 * @deprecated 27 * @see #getLocalSeqNumber() 28 */ getLocalSequenceNumber()29 int getLocalSequenceNumber(); 30 getLocalSeqNumber()31 long getLocalSeqNumber(); 32 getLocalTag()33 String getLocalTag(); 34 getRemoteParty()35 Address getRemoteParty(); 36 37 /** 38 * @deprecated 39 * @see #getRemoteSeqNumber() 40 */ getRemoteSequenceNumber()41 int getRemoteSequenceNumber(); 42 getRemoteSeqNumber()43 long getRemoteSeqNumber(); 44 getRemoteTag()45 String getRemoteTag(); 46 getRemoteTarget()47 Address getRemoteTarget(); 48 getRouteSet()49 Iterator getRouteSet(); 50 getSipProvider()51 SipProvider getSipProvider(); 52 getState()53 DialogState getState(); 54 isSecure()55 boolean isSecure(); 56 isServer()57 boolean isServer(); 58 delete()59 void delete(); 60 incrementLocalSequenceNumber()61 void incrementLocalSequenceNumber(); 62 createRequest(String method)63 Request createRequest(String method) throws SipException; createAck(long cseq)64 Request createAck(long cseq) throws InvalidArgumentException, SipException; createPrack(Response relResponse)65 Request createPrack(Response relResponse) 66 throws DialogDoesNotExistException, SipException; createReliableProvisionalResponse(int statusCode)67 Response createReliableProvisionalResponse(int statusCode) 68 throws InvalidArgumentException, SipException; 69 70 sendRequest(ClientTransaction clientTransaction)71 void sendRequest(ClientTransaction clientTransaction) 72 throws TransactionDoesNotExistException, SipException; sendAck(Request ackRequest)73 void sendAck(Request ackRequest) throws SipException; sendReliableProvisionalResponse(Response relResponse)74 void sendReliableProvisionalResponse(Response relResponse) 75 throws SipException; 76 setBackToBackUserAgent()77 void setBackToBackUserAgent(); 78 terminateOnBye(boolean terminateFlag)79 void terminateOnBye(boolean terminateFlag) throws SipException; 80 } 81