public interface Header extends Cloneable, Serializable
ExtensionHeader
assuming other endpoints understand
the Header. This specification supports the following headers not defined in
RFC3261 documented in
the following standards track RFCs:
Header Handling:
Any SIP header whose grammar is of the form:
The relative order of header objects within messages is not significant. However, it is RECOMMENDED that required header and headers which are needed for proxy processing (Via, Route, Record-Route, Proxy-Require, Max-Forwards, and Proxy-Authorization, for example) appear towards the top of the message to facilitate rapid parsing.
The relative order of header objects with the same field name is important. Multiple headers with the same name MAY be present in a message if and only if the entire field-value for that header field can be defined as a comma-separated list as defined by RFC 3261. The exceptions to this rule are the WWW-Authenticate, Authorization, Proxy-Authenticate, and Proxy-Authorization header fields. Multiple header objects with these names MAY be present in a message, but since their grammar does not follow the general form listed above, they MUST NOT be combined into a single header field row when sent over the network.
Even though an arbitrary number of parameter pairs may be attached to a header object, any given parameter-name MUST NOT appear more than once.
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates and returns a deep copy of the Header.
|
boolean |
equals(Object obj)
Compare this SIP Header for equality with another.
|
String |
getName()
Gets the unique string name of this Header.
|
int |
hashCode()
Gets a integer hashcode representation of the Header.
|
String |
toString()
Gets a string representation of the Header.
|
String getName()
boolean equals(Object obj)
Object clone()
int hashCode()
Copyright © 2016. All Rights Reserved.