Dialog.java :  » android-platform-external » nist-sip » javax » sip » Android Open Source

Android Open Source » android platform external » nist sip 
nist sip » javax » sip » Dialog.java
package javax.sip;

import java.io.Serializable;
import java.text.ParseException;
import java.util.Iterator;
import javax.sip.address.Address;
import javax.sip.header.CallIdHeader;
import javax.sip.message.Request;
import javax.sip.message.Response;

public interface Dialog extends Serializable {
    Object getApplicationData();
    void setApplicationData(Object applicationData);

    CallIdHeader getCallId();
    String getDialogId();

    /**
     * @deprecated
     */
    Transaction getFirstTransaction();

    Address getLocalParty();

    /**
     * @deprecated
     * @see #getLocalSeqNumber()
     */
    int getLocalSequenceNumber();

    long getLocalSeqNumber();

    String getLocalTag();

    Address getRemoteParty();

    /**
     * @deprecated
     * @see #getRemoteSeqNumber()
     */
    int getRemoteSequenceNumber();

    long getRemoteSeqNumber();

    String getRemoteTag();

    Address getRemoteTarget();

    Iterator getRouteSet();

    SipProvider getSipProvider();

    DialogState getState();

    boolean isSecure();

    boolean isServer();

    void delete();

    void incrementLocalSequenceNumber();

    Request createRequest(String method) throws SipException;
    Request createAck(long cseq) throws InvalidArgumentException, SipException;
    Request createPrack(Response relResponse)
            throws DialogDoesNotExistException, SipException;
    Response createReliableProvisionalResponse(int statusCode)
            throws InvalidArgumentException, SipException;


    void sendRequest(ClientTransaction clientTransaction)
            throws TransactionDoesNotExistException, SipException;
    void sendAck(Request ackRequest) throws SipException;
    void sendReliableProvisionalResponse(Response relResponse)
            throws SipException;

    void setBackToBackUserAgent();

    void terminateOnBye(boolean terminateFlag) throws SipException;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.