Class SDP

java.lang.Object
javaforce.voip.SDP
All Implemented Interfaces:
Cloneable

public class SDP extends Object implements Cloneable
SDP (Session Description Protocol)
Author:
pquiring TODO : support TCP/TLS Created : Nov 30, 2013
  • Field Details

    • log

      public int log
    • ip

      public String ip
    • iceufrag

      public String iceufrag
    • icepwd

      public String icepwd
    • fingerprint

      public String fingerprint
    • stream0

      public SDP.Stream stream0
    • streams

      public SDP.Stream[] streams
    • owner

      public String owner
    • session

      public String session
    • o1

      public long o1
    • o2

      public long o2
    • time_start

      public long time_start
    • time_stop

      public long time_stop
    • otherAttributes

      public ArrayList<String> otherAttributes
    • otherParameters

      public ArrayList<String> otherParameters
  • Constructor Details

    • SDP

      public SDP()
  • Method Details

    • setLog

      public void setLog(int id)
    • getIP

      public String getIP()
    • setIP

      public void setIP(String ip)
    • addStream

      public SDP.Stream addStream(SDP.Type type)
    • delStream

      public void delStream(SDP.Stream stream)
    • delAudio

      public void delAudio()
    • delVideo

      public void delVideo()
    • getFirstAudioStream

      public SDP.Stream getFirstAudioStream()
    • getFirstVideoStream

      public SDP.Stream getFirstVideoStream()
    • hasAudio

      public boolean hasAudio()
    • hasVideo

      public boolean hasVideo()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • build

      public String[] build(String localhost)
      Builds SDP packet. (RFC 2327)
    • getSDP

      public static SDP getSDP(String[] msg)
    • getSDP

      public static SDP getSDP(String[] msg, int log)
      Parses the SDP content.
      Parameters:
      msg - = SDP text
      log - = JFLog log id