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