gov.nist.javax.sdp.fields
クラス MediaField

java.lang.Object
  上位を拡張 gov.nist.core.GenericObject
      上位を拡張 gov.nist.javax.sdp.fields.SDPObject
          上位を拡張 gov.nist.javax.sdp.fields.SDPField
              上位を拡張 gov.nist.javax.sdp.fields.MediaField
すべての実装されたインタフェース:
SDPFieldNames, java.io.Serializable, java.lang.Cloneable, javax.sdp.Field, javax.sdp.Media

public class MediaField
extends SDPField
implements javax.sdp.Media

Media field SDP header.

バージョン:
JSR141-PUBLIC-REVIEW (subject to change).
作成者:
Olivier Deruelle , M. Ranganathan
This code is in the public domain.
関連項目:
直列化された形式

フィールドの概要
 
インタフェース gov.nist.javax.sdp.fields.SDPFieldNames から継承されたフィールド
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
 
コンストラクタの概要
MediaField()
           
 
メソッドの概要
 java.lang.String encode()
          Get the string encoded version of this object
 java.util.Vector getFormats()
           
 java.lang.String getMedia()
           
 java.util.Vector getMediaFormats(boolean create)
          Returns an Vector of the media formats supported by this description.
 int getMediaPort()
          Returns the port of the media defined by this description
 java.lang.String getMediaType()
          Returns the type (audio,video etc) of the media defined by this description.
 int getNports()
           
 int getPort()
           
 int getPortCount()
          Returns the number of ports associated with this media description
 java.lang.String getProto()
           
 java.lang.String getProtocol()
          Returns the protocol over which this media should be transmitted.
 void setFormats(java.util.Vector formats)
          Set the fmt member
 void setMedia(java.lang.String m)
          Set the media member
 void setMediaFormats(java.util.Vector mediaFormats)
          Adds a media format to the media description.
 void setMediaPort(int port)
          Sets the port of the media defined by this description
 void setMediaType(java.lang.String mediaType)
          Sets the type (audio,video etc) of the media defined by this description.
 void setNports(int n)
          Set the nports member
 void setPort(int p)
          Set the port member
 void setPortCount(int portCount)
          Sets the number of ports associated with this media description.
 void setProto(java.lang.String p)
          Set the proto member
 void setProtocol(java.lang.String protocol)
          Sets the protocol over which this media should be transmitted.
 
クラス gov.nist.javax.sdp.fields.SDPField から継承されたメソッド
getFieldName, getTypeChar, toString
 
クラス gov.nist.javax.sdp.fields.SDPObject から継承されたメソッド
clone, dbgPrint, debugDump, equals, match, merge, replace, replace, replace, replace
 
クラス gov.nist.core.GenericObject から継承されたメソッド
debugDump, getClassFromName, getMatcher, isMySubclass, setMatcher
 
クラス java.lang.Object から継承されたメソッド
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.sdp.Media から継承されたメソッド
toString
 
インタフェース javax.sdp.Field から継承されたメソッド
clone, getTypeChar
 

コンストラクタの詳細

MediaField

public MediaField()
メソッドの詳細

getMedia

public java.lang.String getMedia()

getPort

public int getPort()

getNports

public int getNports()

getProto

public java.lang.String getProto()

getFormats

public java.util.Vector getFormats()

setMedia

public void setMedia(java.lang.String m)
Set the media member


setPort

public void setPort(int p)
Set the port member


setNports

public void setNports(int n)
Set the nports member


setProto

public void setProto(java.lang.String p)
Set the proto member


setFormats

public void setFormats(java.util.Vector formats)
Set the fmt member


getMediaType

public java.lang.String getMediaType()
                              throws javax.sdp.SdpParseException
Returns the type (audio,video etc) of the media defined by this description.

定義:
インタフェース javax.sdp.Media 内の getMediaType
戻り値:
the string media type.
例外:
javax.sdp.SdpParseException

setMediaType

public void setMediaType(java.lang.String mediaType)
                  throws javax.sdp.SdpException
Sets the type (audio,video etc) of the media defined by this description.

定義:
インタフェース javax.sdp.Media 内の setMediaType
パラメータ:
mediaType - to set
例外:
javax.sdp.SdpException - if mediaType is null

getMediaPort

public int getMediaPort()
                 throws javax.sdp.SdpParseException
Returns the port of the media defined by this description

定義:
インタフェース javax.sdp.Media 内の getMediaPort
戻り値:
the integer media port.
例外:
javax.sdp.SdpParseException

setMediaPort

public void setMediaPort(int port)
                  throws javax.sdp.SdpException
Sets the port of the media defined by this description

定義:
インタフェース javax.sdp.Media 内の setMediaPort
パラメータ:
port - to set
例外:
javax.sdp.SdpException

getPortCount

public int getPortCount()
                 throws javax.sdp.SdpParseException
Returns the number of ports associated with this media description

定義:
インタフェース javax.sdp.Media 内の getPortCount
戻り値:
the integer port count.
例外:
javax.sdp.SdpParseException

setPortCount

public void setPortCount(int portCount)
                  throws javax.sdp.SdpException
Sets the number of ports associated with this media description.

定義:
インタフェース javax.sdp.Media 内の setPortCount
パラメータ:
portCount - portCount - the integer port count.
例外:
javax.sdp.SdpException

getProtocol

public java.lang.String getProtocol()
                             throws javax.sdp.SdpParseException
Returns the protocol over which this media should be transmitted.

定義:
インタフェース javax.sdp.Media 内の getProtocol
戻り値:
the String protocol, e.g. RTP/AVP.
例外:
javax.sdp.SdpParseException

setProtocol

public void setProtocol(java.lang.String protocol)
                 throws javax.sdp.SdpException
Sets the protocol over which this media should be transmitted.

定義:
インタフェース javax.sdp.Media 内の setProtocol
パラメータ:
protocol - - the String protocol, e.g. RTP/AVP.
例外:
javax.sdp.SdpException - if the protocol is null

getMediaFormats

public java.util.Vector getMediaFormats(boolean create)
                                 throws javax.sdp.SdpParseException
Returns an Vector of the media formats supported by this description. Each element in this Vector will be an String value which matches one of the a=rtpmap: attribute fields of the media description.

定義:
インタフェース javax.sdp.Media 内の getMediaFormats
パラメータ:
create - to set
戻り値:
the Vector.
例外:
javax.sdp.SdpException
javax.sdp.SdpParseException

setMediaFormats

public void setMediaFormats(java.util.Vector mediaFormats)
                     throws javax.sdp.SdpException
Adds a media format to the media description. Each element in this Vector should be an String value which matches one of the a=rtpmap: attribute fields of the media description.

定義:
インタフェース javax.sdp.Media 内の setMediaFormats
パラメータ:
mediaFormats - the format to add.
例外:
javax.sdp.SdpException - if the vector is null

encode

public java.lang.String encode()
Get the string encoded version of this object

定義:
クラス SDPField 内の encode
導入されたバージョン:
v1.0