|
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
public class 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()
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 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, encode, 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 Media
SdpParseException
public void setMediaType(String mediaType) throws SdpException
setMediaType
in interface Media
mediaType
- to set
SdpException
- if mediaType is nullpublic int getMediaPort() throws SdpParseException
getMediaPort
in interface Media
SdpParseException
public void setMediaPort(int port) throws SdpException
setMediaPort
in interface Media
port
- to set
SdpException
public int getPortCount() throws SdpParseException
getPortCount
in interface Media
SdpParseException
public void setPortCount(int portCount) throws SdpException
setPortCount
in interface Media
portCount
- portCount - the integer port count.
SdpException
public String getProtocol() throws SdpParseException
getProtocol
in interface Media
SdpParseException
public void setProtocol(String protocol) throws SdpException
setProtocol
in interface Media
protocol
- - the String protocol, e.g. RTP/AVP.
SdpException
- if the protocol is nullpublic Vector getMediaFormats(boolean create) throws SdpParseException
getMediaFormats
in interface Media
create
- to set
SdpException
SdpParseException
public void setMediaFormats(Vector mediaFormats) throws SdpException
setMediaFormats
in interface Media
mediaFormats
- the format to add.
SdpException
- if the vector is nullpublic String encode()
encode
in class SDPField
public Object clone()
gov.nist.core.GenericObject
clone
in interface Field
clone
in class gov.nist.core.GenericObject
|
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 |