类 GBStringMsgParser

java.lang.Object
cn.skcks.docking.gb28181.core.sip.message.parser.GBStringMsgParser
所有已实现的接口:
gov.nist.javax.sip.parser.MessageParser

public class GBStringMsgParser extends Object implements gov.nist.javax.sip.parser.MessageParser
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected static boolean
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    gov.nist.javax.sip.address.AddressImpl
    Parse an address (nameaddr or address spec) and return and address structure.
    gov.nist.core.Host
    Parse a host name and return a parsed structure.
    static gov.nist.javax.sip.header.SIPHeader
    Parse an individual SIP message header from a string.
    gov.nist.javax.sip.message.SIPMessage
    parseSIPMessage(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.RequestLine
    Parse the SIP Request Line
    gov.nist.javax.sip.header.StatusLine
    Parse the SIP Response message status line
    gov.nist.javax.sip.address.SipUri
    Parse a SIP url from a string and return a URI structure for it.
    gov.nist.javax.sip.address.TelephoneNumber
    parseTelephoneNumber(String telephone_number)
    Parse a telephone number return a parsed structure.
    gov.nist.javax.sip.address.GenericURI
    Parse a uri from a string and return a URI structure for it.
    protected gov.nist.javax.sip.message.SIPMessage
    processFirstLine(String firstLine, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener, byte[] msgBuffer)
     
    protected void
    processHeader(String header, gov.nist.javax.sip.message.SIPMessage message, gov.nist.javax.sip.parser.ParseExceptionListener parseExceptionListener, byte[] rawMessage)
     
    static void
    setComputeContentLengthFromMessage(boolean computeContentLengthFromMessage)
     
    protected static String
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • 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

      protected static String trimEndOfLine(String line)
    • 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

      public gov.nist.javax.sip.address.AddressImpl parseAddress(String address) throws ParseException
      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

      public gov.nist.core.Host parseHost(String host) throws ParseException
      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

      public gov.nist.javax.sip.address.SipUri parseSIPUrl(String url) throws ParseException
      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

      public gov.nist.javax.sip.address.GenericURI parseUrl(String url) throws ParseException
      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)