|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
org.jnetpcap.packet.JMappedHeader
org.jnetpcap.packet.AbstractMessageHeader
org.jnetpcap.protocol.voip.Sip
@Header public class Sip
The Session Initiation Protocol (SIP) is an IETF-defined signaling protocol, widely used for controlling multimedia communication sessions such as voice and video calls over Internet Protocol (IP). The protocol can be used for creating, modifying and terminating two-party (unicast) or multiparty (multicast) sessions consisting of one or several media streams. The modification can involve changing addresses or ports, inviting more participants, and adding or deleting media streams. Other feasible application examples include video conferencing, streaming multimedia distribution, instant messaging, presence information, file transfer and online games.
SIP was originally designed by Henning Schulzrinne and Mark Handley starting in 1996. The latest version of the specification is RFC 3261 from the IETF Network Working Group. In November 2000, SIP was accepted as a 3GPP signaling protocol and permanent element of the IP Multimedia Subsystem (IMS) architecture for IP-based streaming multimedia services in cellular systems.
The SIP protocol is an Application Layer protocol designed to be independent of the underlying transport layer; it can run on Transmission Control Protocol (TCP), User Datagram Protocol (UDP), or Stream Control Transmission Protocol (SCTP). It is a text-based protocol, incorporating many elements of the Hypertext Transfer Protocol (HTTP) and the Simple Mail Transfer Protocol (SMTP).
Description Source: http://en.wikipedia.org/wiki/Session_Initiation_Protocol
| Nested Class Summary | |
|---|---|
static class |
Sip.Code
A table of SIP protocol codes and their meanings. |
static class |
Sip.ContentType
A table of SIP supported content types. |
static class |
Sip.Fields
A table of SIP specific fields found in a SIP message. |
static class |
Sip.Request
A table of supported Request message types. |
static class |
Sip.Response
A table of supported Response message types. |
| Nested classes/interfaces inherited from class org.jnetpcap.packet.AbstractMessageHeader |
|---|
AbstractMessageHeader.MessageType |
| Nested classes/interfaces inherited from class org.jnetpcap.packet.JHeader |
|---|
JHeader.State |
| Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory |
|---|
JMemory.Type |
| Field Summary | |
|---|---|
static int |
ID
Constant numerial ID for this protocol's header. |
| Fields inherited from class org.jnetpcap.packet.AbstractMessageHeader |
|---|
rawHeader |
| Fields inherited from class org.jnetpcap.packet.JHeader |
|---|
annotatedHeader, BYTE, EMPTY_HEADER_ARRAY, isSubHeader, packet, state |
| Fields inherited from class org.jnetpcap.nio.JMemory |
|---|
JNETPCAP_LIBRARY_NAME, MAX_DIRECT_MEMORY_DEFAULT, POINTER |
| Constructor Summary | |
|---|---|
Sip()
|
|
| Method Summary | |
|---|---|
int |
contentLength()
Returns the value of the Content_Length field if present. |
java.lang.String |
contentType()
Returns the content type of this SIP message. |
Sip.ContentType |
contentTypeEnum()
Returns the content type of this SIP message as a enum constant. |
protected void |
decodeFirstLine(java.lang.String line)
Decode first line. |
java.lang.String |
fieldValue(Sip.Fields field)
Looks up a field value using Fields table. |
java.lang.String |
fieldValue(Sip.Request field)
Looks up a field value using Request field constant. |
java.lang.String |
fieldValue(Sip.Response field)
Looks up a field value using Response field constant. |
boolean |
hasContent()
Checks if the message has any content defined. |
boolean |
hasContentType()
Checks if Content_Type field is present within the message. |
boolean |
hasField(Sip.Fields field)
Checks if a specific field is present within the message. |
java.lang.String |
header()
Gets the raw header instead of reconstructing it. |
boolean |
isResponse()
Checks if this message is a response message. |
| Methods inherited from class org.jnetpcap.packet.AbstractMessageHeader |
|---|
decodeHeader, getMessageType, headerLength, setMessageType |
| Methods inherited from class org.jnetpcap.packet.JMappedHeader |
|---|
addField, addField, addField, clearFields, fieldArray, fieldDescription, fieldDescription, fieldDisplay, fieldDisplay, fieldLength, fieldLength, fieldOffset, fieldOffset, fieldValue, fieldValue, fieldValue, fieldValue, hasField, hasField, map, map |
| Methods inherited from class org.jnetpcap.nio.JBuffer |
|---|
findUTF8String, getByte, getByteArray, getByteArray, getByteArray, getDouble, getFloat, getInt, getLong, getShort, getUByte, getUInt, getUShort, getUTF8Char, getUTF8String, getUTF8String, getUTF8String, getUTF8String, isReadonly, order, order, peer, peer, peer, peer, setByte, setByteArray, setByteBuffer, setDouble, setFloat, setInt, setLong, setShort, setShort0, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int ID
| Constructor Detail |
|---|
public Sip()
| Method Detail |
|---|
public int contentLength()
public java.lang.String contentType()
public Sip.ContentType contentTypeEnum()
protected void decodeFirstLine(java.lang.String line)
decodeFirstLine in class AbstractMessageHeaderline - the lineAbstractMessageHeader.decodeFirstLine(java.lang.String)public java.lang.String fieldValue(Sip.Fields field)
field - field to lookup
public java.lang.String fieldValue(Sip.Request field)
field - field to lookup
public java.lang.String fieldValue(Sip.Response field)
field - field to lookup
public boolean hasContent()
public boolean hasContentType()
public boolean hasField(Sip.Fields field)
field - field to lookup
public java.lang.String header()
public boolean isResponse()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||