Interface SipMessage

    • Method Detail

      • getMethod

        String getMethod()
      • getSequenceNumber

        long getSequenceNumber()
      • getProtocol

        String getProtocol()
      • setHeader

        void setHeader​(String headerName,
                       String value)
      • addHeader

        void addHeader​(String headerName,
                       String value)
      • removeHeader

        void removeHeader​(String headerName)
      • setAddressHeader

        void setAddressHeader​(String headerName,
                              Address address)
      • addAddressHeader

        void addAddressHeader​(String headerName,
                              Address address,
                              boolean first)
      • setParameterableHeader

        void setParameterableHeader​(String headerName,
                                    Parameterable header)
      • addParameterableHeader

        void addParameterableHeader​(String headerName,
                                    Parameterable header,
                                    boolean first)
      • getHeaderGeneric

        Object getHeaderGeneric​(String headerName)
        Gets the first header value of the named header where we don't know its type in advance.
        Parameters:
        headerName - the header name
        Returns:
        an instance of the most specific type: either Address, Parameterable or String in that order. The RA will perform the conversion and the caller can check the return value's type using instanceof.
      • setHeaderGeneric

        void setHeaderGeneric​(String headerName,
                              Object value)
      • addHeaderGeneric

        void addHeaderGeneric​(String headerName,
                              Object value,
                              boolean first)
      • getCallId

        String getCallId()
      • getExpires

        int getExpires()
      • setExpires

        void setExpires​(int i)
      • getCharacterEncoding

        String getCharacterEncoding()
      • getContentLength

        int getContentLength()
      • getContentType

        String getContentType()
      • setContentType

        void setContentType​(String contentType)
      • getSession

        SipSession getSession​(boolean create)
      • getAcceptLanguage

        Locale getAcceptLanguage()
      • getAcceptLanguages

        Iterator getAcceptLanguages()
      • setAcceptLanguage

        void setAcceptLanguage​(Locale locale)
      • addAcceptLanguage

        void addAcceptLanguage​(Locale locale)
      • setContentLanguage

        void setContentLanguage​(Locale locale)
      • getContentLanguage

        Locale getContentLanguage()
      • isSecure

        boolean isSecure()
      • isCommitted

        boolean isCommitted()
      • getRemoteUser

        String getRemoteUser()
      • isUserInRole

        boolean isUserInRole​(String role)
      • getUserPrincipal

        Principal getUserPrincipal()
      • getLocalAddr

        String getLocalAddr()
      • getLocalPort

        int getLocalPort()
      • getRemoteAddr

        String getRemoteAddr()
      • getRemotePort

        int getRemotePort()
      • getTransport

        String getTransport()
      • isExtensionSupported

        boolean isExtensionSupported​(String optionTag)
        Convenience method to determine if this message contains a Supported header value with the given option tag. Examples of option tags are: "100rel", for RFC3262 reliable provisional responses support; and "timer", for RFC4028 session timer support.
        Parameters:
        optionTag - the option tag denoting the extension
        Returns:
        true if the message contains a Supported header value with the given option tag; otherwise false.
      • isExtensionRequired

        boolean isExtensionRequired​(String optionTag)
        Convenience method to determine if this message contains a Require header value with the given option tag. Examples of option tags are: "100rel", for RFC3262 reliable provisional responses support; and "timer", for RFC4028 session timer support.
        Parameters:
        optionTag - the option tag denoting the extension
        Returns:
        true if the message contains a Require header value with the given option tag; otherwise false.