MjSip Stack
v1.6

org.zoolu.sip.call
Class SdpTools

java.lang.Object
  |
  +--org.zoolu.sip.call.SdpTools

public class SdpTools
extends java.lang.Object

Class SdpTools collects some static methods for managing SDP materials.


Constructor Summary
SdpTools()
           
 
Method Summary
static SessionDescriptor sdpAttirbuteSelection(SessionDescriptor sdp, java.lang.String a_name)
          Costructs a new SessionDescriptor from a given SessionDescriptor with olny the first specified media attribute.
static SessionDescriptor sdpMediaProduct(SessionDescriptor sdp, java.util.Vector m_descs)
          Costructs a new SessionDescriptor from a given SessionDescriptor with olny media types and attribute values specified by a MediaDescriptor Vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SdpTools

public SdpTools()
Method Detail

sdpMediaProduct

public static SessionDescriptor sdpMediaProduct(SessionDescriptor sdp,
                                                java.util.Vector m_descs)
Costructs a new SessionDescriptor from a given SessionDescriptor with olny media types and attribute values specified by a MediaDescriptor Vector.

If no attribute is specified for a particular media, all present attributes are kept.
If no attribute is present for a selected media, the media is kept (regardless any sepcified attributes).

Parameters:
sdp - the given SessionDescriptor
m_descs - Vector of MediaDescriptor with the selecting media types and attributes
Returns:
this SessionDescriptor

sdpAttirbuteSelection

public static SessionDescriptor sdpAttirbuteSelection(SessionDescriptor sdp,
                                                      java.lang.String a_name)
Costructs a new SessionDescriptor from a given SessionDescriptor with olny the first specified media attribute. /** Keeps only the fisrt attribute of the specified type for each media.

If no attribute is present for a media, the media is dropped.

Parameters:
sdp - the given SessionDescriptor
a_name - the attribute name
Returns:
this SessionDescriptor

MjSip Stack
v1.6