Example usage for javax.xml.soap SOAPHeaderElement getMustUnderstand

List of usage examples for javax.xml.soap SOAPHeaderElement getMustUnderstand

Introduction

In this page you can find the example usage for javax.xml.soap SOAPHeaderElement getMustUnderstand.

Prototype

public boolean getMustUnderstand();

Source Link

Document

Returns the boolean value of the mustUnderstand attribute for this SOAPHeaderElement .

Usage

From source file:org.apache.axis.message.SOAPHeader.java

public Iterator examineMustUnderstandHeaderElements(String actor) {
    if (actor == null)
        return null;

    Vector result = new Vector();
    List headers = getChildren();
    if (headers != null) {
        for (int i = 0; i < headers.size(); i++) {
            SOAPHeaderElement she = (SOAPHeaderElement) headers.get(i);
            if (she.getMustUnderstand()) {
                String candidate = she.getActor();
                if (actor.equals(candidate)) {
                    result.add(headers.get(i));
                }/* ww  w .j a  v  a2  s  .co  m*/
            }
        }
    }
    return result.iterator();
}