Interface MessageHeaders

    • Method Detail

      • understood

        void understood​(Header header)
      • understood

        void understood​(QName name)
      • understood

        void understood​(String nsUri,
                        String localName)
      • get

        Header get​(QName name,
                   boolean markAsUnderstood)
      • getHeaders

        Iterator<Header> getHeaders​(String nsUri,
                                    boolean markAsUnderstood)
        Get all headers in specified namespace
        Parameters:
        nsUri -
        markAsUnderstood -
        Returns:
      • hasHeaders

        boolean hasHeaders()
      • add

        boolean add​(Header header)
      • addOrReplace

        boolean addOrReplace​(Header header)
        Replaces an existing Header or adds a new Header.

        Order doesn't matter in headers, so this method does not make any guarantee as to where the new header is inserted.

        Returns:
        always true. Don't use the return value.
      • getUnderstoodHeaders

        Set<QName> getUnderstoodHeaders()
        Return a Set of QNames of headers that have been explicitly marked as understood. If none have been marked, this method could return null
      • getNotUnderstoodHeaders

        Set<QName> getNotUnderstoodHeaders​(Set<String> roles,
                                           Set<QName> knownHeaders,
                                           WSBinding binding)
        Returns a Set of QNames of headers that satisfy ALL the following conditions: (a) Have mustUnderstand = true (b) have NOT been explicitly marked as understood (c) If roles argument is non-null, the header has isIgnorable = false for the roles argument and SOAP version (d) If non-null binding is passed in, are NOT understood by the binding (e) If (d) is met, the header is NOT in the knownHeaders list passed in
        Parameters:
        roles -
        knownHeaders -
        binding -
        Returns:
      • isUnderstood

        boolean isUnderstood​(Header header)
        True if the header has been explicitly marked understood, false otherwise
        Parameters:
        header -
        Returns:
      • isUnderstood

        boolean isUnderstood​(QName header)
        True if the header has been explicitly marked understood, false otherwise
        Parameters:
        header -
        Returns:
      • isUnderstood

        boolean isUnderstood​(String nsUri,
                             String header)
        True if the header has been explicitly marked understood, false otherwise
        Parameters:
        header -
        Returns:
      • asList

        List<Header> asList()
        Returns Header instances in a List.
        Returns:
        List containing Header instances