public class ExtensionHeaderImpl extends SIPHeader implements ExtensionHeader
| Modifier and Type | Field and Description |
|---|---|
protected String |
value |
headerNameAND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentationACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE| Constructor and Description |
|---|
ExtensionHeaderImpl()
This was added to allow for automatic cloning of headers.
|
ExtensionHeaderImpl(String headerName) |
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Return the canonical encoding of this header.
|
String |
encodeBody()
Return just the body of this header encoded (leaving out the
name and the CRLF at the end).
|
StringBuilder |
encodeBody(StringBuilder buffer)
Return the canonical encoding of this header.
|
String |
getHeaderValue()
Get the value of the extension header.
|
void |
setName(String headerName)
Set the name of the header.
|
void |
setValue(String value)
Set the value of the header.
|
encode, getHeaderName, getName, getValue, hashCode, isHeaderList, setHeaderName, toStringdbgPrint, debugDump, debugDump, equals, matchclone, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintequals, finalize, getClass, notify, notifyAll, wait, wait, waitgetValueprotected String value
public ExtensionHeaderImpl()
public ExtensionHeaderImpl(String headerName)
public void setName(String headerName)
headerName - is the name of the header to set.public void setValue(String value)
setValue in interface ExtensionHeadervalue - - the new value of the ExtensionHeaderpublic String getHeaderValue()
getHeaderValue in class SIPHeaderpublic String encode()
public StringBuilder encodeBody(StringBuilder buffer)
encodeBody in class SIPHeaderpublic String encodeBody()
Copyright © 2014. All Rights Reserved.