public abstract class MediaTypeHeaderImpl extends ParametersImpl implements MediaTypeHeader
MediaTypeHeaders| Constructor and Description |
|---|
MediaTypeHeaderImpl(Buffer name,
Buffer mType,
Buffer subType,
Buffer params) |
| Modifier and Type | Method and Description |
|---|---|
MediaTypeHeader |
ensure()
If this method actually gets called it means that we are the As most things in this library are done lazily, such as framing headers, you can make sure
that a particular header has indeed been parsed to the more specific header type by calling
this method.
|
Buffer |
getContentSubType() |
Buffer |
getContentType() |
Buffer |
getValue()
Will only return the parameters.
|
boolean |
isSDP()
Convenience method for checking whether the media type is
"application/sdp"
|
getParameter, getParameter, setParameter, setParameter, transferValueclone, getBytes, getName, toString, verifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitframepublic Buffer getContentType()
getContentType in interface MediaTypeHeaderpublic Buffer getContentSubType()
getContentSubType in interface MediaTypeHeaderpublic boolean isSDP()
isSDP in interface MediaTypeHeaderpublic Buffer getValue()
ParametersImplgetValue in interface SipHeadergetValue in class ParametersImplpublic MediaTypeHeader ensure()
SipHeaderImplContactHeader but it is still in its "raw" form and therefore represented as a
SipHeader as opposed to an actual ContactHeader but by calling this method
you will force the library to actually fully frame it.ensure in interface SipHeaderensure in class SipHeaderImplCopyright © 2017. All Rights Reserved.