public class Event extends ParametersHeader implements EventHeader
Modifier and Type | Field and Description |
---|---|
protected String |
eventType |
duplicates, parameters
headerName
AND, 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, stringRepresentation
NAME
ACCEPT, 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 |
---|
Event()
Creates a new instance of Event
|
Modifier and Type | Method and Description |
---|---|
String |
encodeBody()
Encode in canonical form.
|
protected StringBuilder |
encodeBody(StringBuilder buffer)
Encode the body of this header (the stuff that follows headerName).
|
String |
getEventId()
Gets the id of the EventHeader.
|
String |
getEventType()
Gets the eventType of the EventHeader.
|
boolean |
match(Event matchTarget)
Return true if the given event header matches the supplied one.
|
void |
setEventId(String eventId)
Sets the id to the newly supplied eventId string.
|
void |
setEventType(String eventType)
Sets the eventType to the newly supplied eventType string.
|
clone, equalParameters, getMultiParameter, getMultiParameterNames, getMultiParameters, getMultiParameterValue, getNameValue, getParameter, getParameter, getParameterAsBoolean, getParameterAsFloat, getParameterAsHexInt, getParameterAsInt, getParameterAsLong, getParameterAsURI, getParameterNames, getParameters, getParameterValue, hasMultiParameter, hasMultiParameters, hasParameter, hasParameters, removeMultiParameter, removeMultiParameters, removeParameter, removeParameters, setMultiParameter, setMultiParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameters, setQuotedParameter
encode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toString
dbgPrint, debugDump, debugDump, equals, match
dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, notify, notifyAll, wait, wait, wait
getParameter, getParameterNames, removeParameter, setParameter
protected String eventType
public void setEventType(String eventType) throws ParseException
setEventType
in interface EventHeader
eventType
- - the new string defining the eventType supported
in this EventHeaderParseException
- which signals that an error has been reached
unexpectedly while parsing the eventType value.public String getEventType()
getEventType
in interface EventHeader
public void setEventId(String eventId) throws ParseException
setEventId
in interface EventHeader
eventId
- - the new string defining the eventId of this EventHeaderParseException
- which signals that an error has been reached
unexpectedly while parsing the eventId value.public String getEventId()
getEventId
in interface EventHeader
public String encodeBody()
protected StringBuilder encodeBody(StringBuilder buffer)
SIPHeader
encodeBody
in class ParametersHeader
public boolean match(Event matchTarget)
matchTarget
- -- event header to match against.Copyright © 2018. All Rights Reserved.