|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sdp.fields.SDPObject
gov.nist.javax.sdp.fields.SDPField
gov.nist.javax.sdp.fields.MediaField
Media field SDP header.
| Field Summary |
| Fields inherited from interface 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 |
| Constructor Summary | |
MediaField()
|
|
| Method Summary | |
Object |
clone()
Returns a clone of this field. |
String |
encode()
Get the string encoded version of this object |
Vector |
getFormats()
|
String |
getMedia()
|
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 |
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 |
String |
getProto()
|
String |
getProtocol()
Returns the protocol over which this media should be transmitted. |
void |
setFormats(Vector formats)
Set the fmt member |
void |
setMedia(String m)
Set the media member |
void |
setMediaFormats(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(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(String p)
Set the proto member |
void |
setProtocol(String protocol)
Sets the protocol over which this media should be transmitted. |
| Methods inherited from class gov.nist.javax.sdp.fields.SDPField |
getFieldName, getTypeChar, toString |
| Methods inherited from class gov.nist.javax.sdp.fields.SDPObject |
dbgPrint, debugDump, equals, match |
| Methods inherited from class gov.nist.core.GenericObject |
debugDump, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.sdp.Media |
toString |
| Methods inherited from interface javax.sdp.Field |
getTypeChar |
| Constructor Detail |
public MediaField()
| Method Detail |
public String getMedia()
public int getPort()
public int getNports()
public String getProto()
public Vector getFormats()
public void setMedia(String m)
public void setPort(int p)
public void setNports(int n)
public void setProto(String p)
public void setFormats(Vector formats)
public String getMediaType()
throws SdpParseException
getMediaType in interface MediaSdpParseException
public void setMediaType(String mediaType)
throws SdpException
setMediaType in interface MediamediaType - to set
SdpException - if mediaType is null
public int getMediaPort()
throws SdpParseException
getMediaPort in interface MediaSdpParseException
public void setMediaPort(int port)
throws SdpException
setMediaPort in interface Mediaport - to set
SdpException
public int getPortCount()
throws SdpParseException
getPortCount in interface MediaSdpParseException
public void setPortCount(int portCount)
throws SdpException
setPortCount in interface MediaportCount - portCount - the integer port count.
SdpException
public String getProtocol()
throws SdpParseException
getProtocol in interface MediaSdpParseException
public void setProtocol(String protocol)
throws SdpException
setProtocol in interface Mediaprotocol - - the String protocol, e.g. RTP/AVP.
SdpException - if the protocol is null
public Vector getMediaFormats(boolean create)
throws SdpParseException
getMediaFormats in interface Mediacreate - to set
SdpException
SdpParseException
public void setMediaFormats(Vector mediaFormats)
throws SdpException
setMediaFormats in interface MediamediaFormats - the format to add.
SdpException - if the vector is nullpublic String encode()
encode in class SDPFieldpublic Object clone()
Field
clone in interface Field
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||