类 GBStringMsgParser
java.lang.Object
cn.skcks.docking.gb28181.core.sip.message.parser.GBStringMsgParser
- 所有已实现的接口:
gov.nist.javax.sip.parser.MessageParser
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明gov.nist.javax.sip.address.AddressImplparseAddress(String address) Parse an address (nameaddr or address spec) and return and address structure.gov.nist.core.HostParse a host name and return a parsed structure.static gov.nist.javax.sip.header.SIPHeaderparseSIPHeader(String header) Parse an individual SIP message header from a string.gov.nist.javax.sip.message.SIPMessageparseSIPMessage(byte[] msgBuffer, boolean readBody, boolean strict, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener) Parse a buffer containing a single SIP Message where the body is an array of un-interpreted bytes.gov.nist.javax.sip.header.RequestLineparseSIPRequestLine(String requestLine) Parse the SIP Request Linegov.nist.javax.sip.header.StatusLineparseSIPStatusLine(String statusLine) Parse the SIP Response message status linegov.nist.javax.sip.address.SipUriparseSIPUrl(String url) Parse a SIP url from a string and return a URI structure for it.gov.nist.javax.sip.address.TelephoneNumberparseTelephoneNumber(String telephone_number) Parse a telephone number return a parsed structure.gov.nist.javax.sip.address.GenericURIParse a uri from a string and return a URI structure for it.protected gov.nist.javax.sip.message.SIPMessageprocessFirstLine(String firstLine, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener, byte[] msgBuffer) protected voidprocessHeader(String header, gov.nist.javax.sip.message.SIPMessage message, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener, byte[] rawMessage) static voidsetComputeContentLengthFromMessage(boolean computeContentLengthFromMessage) protected static StringtrimEndOfLine(String line)
-
字段详细资料
-
computeContentLengthFromMessage
protected static boolean computeContentLengthFromMessage
-
-
构造器详细资料
-
GBStringMsgParser
public GBStringMsgParser()- 从以下版本开始:
- v0.9
-
-
方法详细资料
-
parseSIPMessage
public gov.nist.javax.sip.message.SIPMessage parseSIPMessage(byte[] msgBuffer, boolean readBody, boolean strict, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener) throws ParseException Parse a buffer containing a single SIP Message where the body is an array of un-interpreted bytes. This is intended for parsing the message from a memory buffer when the buffer. Incorporates a bug fix for a bug that was noted by Will Sullin of Callcast- 指定者:
parseSIPMessage在接口中gov.nist.javax.sip.parser.MessageParser- 参数:
msgBuffer- a byte buffer containing the messages to be parsed. This can consist of multiple SIP Messages concatenated together.- 返回:
- a SIPMessage[] structure (request or response) containing the parsed SIP message.
- 抛出:
ParseException- is thrown when an illegal message has been encountered (and the rest of the buffer is discarded).- 另请参阅:
-
ParseExceptionListener
-
trimEndOfLine
-
processFirstLine
protected gov.nist.javax.sip.message.SIPMessage processFirstLine(String firstLine, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener, byte[] msgBuffer) throws ParseException - 抛出:
ParseException
-
processHeader
protected void processHeader(String header, gov.nist.javax.sip.message.SIPMessage message, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener, byte[] rawMessage) throws ParseException - 抛出:
ParseException
-
parseAddress
Parse an address (nameaddr or address spec) and return and address structure.- 参数:
address- is a String containing the address to be parsed.- 返回:
- a parsed address structure.
- 抛出:
ParseException- when the address is badly formatted.- 从以下版本开始:
- v1.0
-
parseHost
Parse a host name and return a parsed structure.- 参数:
host- is a String containing the host name to be parsed- 返回:
- a parsed address structure.
- 抛出:
ParseException- a ParseException when the hostname is badly formatted.- 从以下版本开始:
- v1.0
-
parseTelephoneNumber
public gov.nist.javax.sip.address.TelephoneNumber parseTelephoneNumber(String telephone_number) throws ParseException Parse a telephone number return a parsed structure.- 参数:
telephone_number- is a String containing the telephone # to be parsed- 返回:
- a parsed address structure.
- 抛出:
ParseException- a ParseException when the address is badly formatted.- 从以下版本开始:
- v1.0
-
parseSIPUrl
Parse a SIP url from a string and return a URI structure for it.- 参数:
url- a String containing the URI structure to be parsed.- 返回:
- A parsed URI structure
- 抛出:
ParseException- if there was an error parsing the message.
-
parseUrl
Parse a uri from a string and return a URI structure for it.- 参数:
url- a String containing the URI structure to be parsed.- 返回:
- A parsed URI structure
- 抛出:
ParseException- if there was an error parsing the message.
-
parseSIPHeader
public static gov.nist.javax.sip.header.SIPHeader parseSIPHeader(String header) throws ParseException Parse an individual SIP message header from a string.- 参数:
header- String containing the SIP header.- 返回:
- a SIPHeader structure.
- 抛出:
ParseException- if there was an error parsing the message.
-
parseSIPRequestLine
public gov.nist.javax.sip.header.RequestLine parseSIPRequestLine(String requestLine) throws ParseException Parse the SIP Request Line- 参数:
requestLine- a String containing the request line to be parsed.- 返回:
- a RequestLine structure that has the parsed RequestLine
- 抛出:
ParseException- if there was an error parsing the requestLine.
-
parseSIPStatusLine
public gov.nist.javax.sip.header.StatusLine parseSIPStatusLine(String statusLine) throws ParseException Parse the SIP Response message status line- 参数:
statusLine- a String containing the Status line to be parsed.- 返回:
- StatusLine class corresponding to message
- 抛出:
ParseException- if there was an error parsing- 另请参阅:
-
StatusLine
-
setComputeContentLengthFromMessage
public static void setComputeContentLengthFromMessage(boolean computeContentLengthFromMessage)
-