Interface LazyParsedMessage

  • All Superinterfaces:
    Cloneable, javax.sip.message.Message, Serializable

    public interface LazyParsedMessage
    extends javax.sip.message.Message
    Messages in the OC SIP stack implement this interface. Applications use this interface to get at the raw unparsed values of headers. This may be useful when lazy parsing is enabled and a header fails to parse at runtime. The application can catch the LazyParsingException and use this interface to try to make sense of the unparsed header value.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getUnparsedHeaderValue​(String headerName)
      Get the raw string value of a header.
      String[] getUnparsedHeaderValues​(String headerName)
      Get the raw string values of a header.
      • Methods inherited from interface javax.sip.message.Message

        addFirst, addHeader, addLast, clone, equals, getContent, getContentDisposition, getContentEncoding, getContentLanguage, getContentLength, getExpires, getHeader, getHeaderNames, getHeaders, getRawContent, getSIPVersion, getUnrecognizedHeaders, hashCode, removeContent, removeFirst, removeHeader, removeLast, setContent, setContentDisposition, setContentEncoding, setContentLanguage, setContentLength, setExpires, setHeader, setSIPVersion, toString
    • Method Detail

      • getUnparsedHeaderValue

        String getUnparsedHeaderValue​(String headerName)
        Get the raw string value of a header. If there are multiple occurrences of this header in the message, only the first header is returned.
        Parameters:
        headerName - the name of the header type
        Returns:
        the string value of the first header of this type in the message, or null if the header is not present in the message. The string does not include the header name.
      • getUnparsedHeaderValues

        String[] getUnparsedHeaderValues​(String headerName)
        Get the raw string values of a header. If there are multiple occurrences of this header in the message, all values are returned as strings.
        Parameters:
        headerName - the name of the header type
        Returns:
        an array containing the string values of all headers of this type in the message, or null if the header is not present in the message. These strings do not include the header name.