1package javax.sip;
2
3import java.io.Serializable;
4import java.text.ParseException;
5import java.util.Iterator;
6import javax.sip.address.Address;
7import javax.sip.header.CallIdHeader;
8import javax.sip.message.Request;
9import javax.sip.message.Response;
10
11public 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