|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sdp.GenericObject
org.lastbamboo.common.sdp.fields.SDPObject
org.lastbamboo.common.sdp.fields.SDPField
org.lastbamboo.common.sdp.fields.MediaField
public class MediaField
Media field SDP header.
| Field Summary | |
|---|---|
protected Vector |
formats
|
protected String |
media
|
protected int |
nports
|
protected int |
port
|
protected String |
proto
|
| Fields inherited from class org.lastbamboo.common.sdp.fields.SDPField |
|---|
fieldName |
| Fields inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation |
| Fields inherited from interface org.lastbamboo.common.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()
Clones this object. |
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 org.lastbamboo.common.sdp.fields.SDPField |
|---|
getFieldName, getTypeChar, toString |
| Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject |
|---|
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint |
| Methods inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
Assert, dbgPrint, dbgPrint, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.lastbamboo.common.sdp.api.Media |
|---|
toString |
| Methods inherited from interface org.lastbamboo.common.sdp.api.Field |
|---|
getTypeChar |
| Field Detail |
|---|
protected String media
protected int port
protected int nports
protected String proto
protected Vector formats
| 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()
GenericObject
clone in interface Fieldclone in class GenericObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||