public interface ContentTypeHeader extends SipHeader, MediaTypeHeader, Parameters
Modifier and Type | Method and Description |
---|---|
ContentTypeHeader |
clone() |
static ContentTypeHeader |
frame(Buffer buffer)
Frame the value as a
ContentTypeHeader . |
getContentSubType, getContentType, isSDP
getParameter, getParameter, setParameter, setParameter
static final Buffer NAME
ContentTypeHeader clone()
static ContentTypeHeader frame(Buffer buffer) throws SipParseException
ContentTypeHeader
. This method assumes that you have already
parsed out the actual header name "Content-Type: ". Also, this method assumes that a message
framer (or similar) has framed the buffer that is being passed in to us to only contain this
header and nothing else.
Note, as with all the frame-methods on all headers/messages/whatever, they do not do any
validation that the information is actually correct. This method will simply only try and
validate just enough to get the framing done.frame
in interface MediaTypeHeader
frame
in interface SipHeader
value
- SipParseException
- in case anything goes wrong while parsing.Copyright © 2014. All Rights Reserved.