|
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.KeyField
public class KeyField
Key field part of an SDP header. Acknowledgement. Bug fix contributed by espen@java.net
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 | |
---|---|
KeyField()
|
Method Summary | |
---|---|
String |
encode()
Get the string encoded version of this object |
String |
getKey()
Returns the value of this attribute. |
String |
getKeyData()
|
String |
getMethod()
Returns the name of this attribute |
String |
getType()
|
boolean |
hasKey()
Determines if this attribute has an associated value. |
void |
setKey(String key)
Sets the value of this attribute. |
void |
setKeyData(String k)
Set the keyData member |
void |
setMethod(String name)
Sets the id of this attribute. |
void |
setType(String t)
Set the type member |
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 |
---|
clone, 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.Field |
---|
clone, getTypeChar |
Constructor Detail |
---|
public KeyField()
Method Detail |
---|
public String getType()
public String getKeyData()
public void setType(String t)
public void setKeyData(String k)
public String encode()
encode
in class SDPField
public String getMethod() throws SdpParseException
getMethod
in interface Key
SdpParseException
public void setMethod(String name) throws SdpException
setMethod
in interface Key
name
- to set
SdpException
- if the name is nullpublic boolean hasKey() throws SdpParseException
hasKey
in interface Key
SdpParseException
public String getKey() throws SdpParseException
getKey
in interface Key
SdpParseException
public void setKey(String key) throws SdpException
setKey
in interface Key
key
- to set
SdpException
- if key is null
|
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 |