< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/message/HeaderList.java

Print this page

        

*** 85,101 **** * * <p> * There are two ways to mark a header as understood: * * <ol> ! * <li>Use one of the <tt>getXXX</tt> methods that take a ! * boolean <tt>markAsUnderstood</tt> parameter. * Most often, a {@link Pipe} knows it's going to understand a header * as long as it's present, so this is the easiest and thus the preferred way. * * For example, if JAX-WSA looks for &lt;wsa:To>, then it can set ! * <tt>markAsUnderstand</tt> to true, to do the obtaining of a header * and marking at the same time. * * <li>Call {@link #understood(int)}. * If under a rare circumstance, a pipe cannot determine whether * it can understand it or not when you are fetching a header, then --- 85,101 ---- * * <p> * There are two ways to mark a header as understood: * * <ol> ! * <li>Use one of the {@code getXXX} methods that take a ! * boolean {@code markAsUnderstood} parameter. * Most often, a {@link Pipe} knows it's going to understand a header * as long as it's present, so this is the easiest and thus the preferred way. * * For example, if JAX-WSA looks for &lt;wsa:To>, then it can set ! * {@code markAsUnderstand} to true, to do the obtaining of a header * and marking at the same time. * * <li>Call {@link #understood(int)}. * If under a rare circumstance, a pipe cannot determine whether * it can understand it or not when you are fetching a header, then
*** 487,579 **** } }; } /** ! * Returns the value of WS-Addressing <code>To</code> header. The <code>version</code> * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate <code>To</code> headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either <code>av</code> or <code>sv</code> is null. * @return Value of WS-Addressing To header, anonymous URI if no header is present */ public String getTo(AddressingVersion av, SOAPVersion sv) { return AddressingUtils.getTo(this, av, sv); } /** ! * Returns the value of WS-Addressing <code>Action</code> header. The <code>version</code> * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate <code>Action</code> headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either <code>av</code> or <code>sv</code> is null. * @return Value of WS-Addressing Action header, null if no header is present */ public String getAction(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getAction(this, av, sv); } /** ! * Returns the value of WS-Addressing <code>ReplyTo</code> header. The <code>version</code> * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate <code>ReplyTo</code> headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either <code>av</code> or <code>sv</code> is null. * @return Value of WS-Addressing ReplyTo header, null if no header is present */ public WSEndpointReference getReplyTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getReplyTo(this, av, sv); } /** ! * Returns the value of WS-Addressing <code>FaultTo</code> header. The <code>version</code> * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate <code>FaultTo</code> headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either <code>av</code> or <code>sv</code> is null. * @return Value of WS-Addressing FaultTo header, null if no header is present */ public WSEndpointReference getFaultTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getFaultTo(this, av, sv); } /** ! * Returns the value of WS-Addressing <code>MessageID</code> header. The <code>version</code> * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate <code>MessageID</code> headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws WebServiceException if either <code>av</code> or <code>sv</code> is null. * @return Value of WS-Addressing MessageID header, null if no header is present */ public String getMessageID(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getMessageID(this, av, sv); } /** ! * Returns the value of WS-Addressing <code>RelatesTo</code> header. The <code>version</code> * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate <code>RelatesTo</code> headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws WebServiceException if either <code>av</code> or <code>sv</code> is null. * @return Value of WS-Addressing RelatesTo header, null if no header is present */ public String getRelatesTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getRelatesTo(this, av, sv); } --- 487,579 ---- } }; } /** ! * Returns the value of WS-Addressing {@code To} header. The {@code version} * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate {@code To} headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either {@code av} or {@code sv} is null. * @return Value of WS-Addressing To header, anonymous URI if no header is present */ public String getTo(AddressingVersion av, SOAPVersion sv) { return AddressingUtils.getTo(this, av, sv); } /** ! * Returns the value of WS-Addressing {@code Action} header. The {@code version} * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate {@code Action} headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either {@code av} or {@code sv} is null. * @return Value of WS-Addressing Action header, null if no header is present */ public String getAction(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getAction(this, av, sv); } /** ! * Returns the value of WS-Addressing {@code ReplyTo} header. The {@code version} * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate {@code ReplyTo} headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either {@code av} or {@code sv} is null. * @return Value of WS-Addressing ReplyTo header, null if no header is present */ public WSEndpointReference getReplyTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getReplyTo(this, av, sv); } /** ! * Returns the value of WS-Addressing {@code FaultTo} header. The {@code version} * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate {@code FaultTo} headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws IllegalArgumentException if either {@code av} or {@code sv} is null. * @return Value of WS-Addressing FaultTo header, null if no header is present */ public WSEndpointReference getFaultTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getFaultTo(this, av, sv); } /** ! * Returns the value of WS-Addressing {@code MessageID} header. The {@code version} * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate {@code MessageID} headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws WebServiceException if either {@code av} or {@code sv} is null. * @return Value of WS-Addressing MessageID header, null if no header is present */ public String getMessageID(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getMessageID(this, av, sv); } /** ! * Returns the value of WS-Addressing {@code RelatesTo} header. The {@code version} * identifies the WS-Addressing version and the header returned is targeted at * the current implicit role. Caches the value for subsequent invocation. ! * Duplicate {@code RelatesTo} headers are detected earlier. * * @param av WS-Addressing version * @param sv SOAP version ! * @throws WebServiceException if either {@code av} or {@code sv} is null. * @return Value of WS-Addressing RelatesTo header, null if no header is present */ public String getRelatesTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) { return AddressingUtils.getRelatesTo(this, av, sv); }
*** 801,818 **** } /** * Removes a single instance of the specified element from this * header list, if it is present. More formally, ! * removes a header <tt>h</tt> such that <tt>(o==null ? h==null : ! * o.equals(h))</tt>, if the header list contains one or more such ! * headers. Returns <tt>true</tt> if the list contained the * specified element (or equivalently, if the list changed as a * result of the call).<p> * * @param o element to be removed from this list, if present. ! * @return <tt>true</tt> if the list contained the specified element. * @see #remove(javax.xml.namespace.QName) */ @Override public boolean remove(Object o) { if (o != null) { --- 801,819 ---- } /** * Removes a single instance of the specified element from this * header list, if it is present. More formally, ! * removes a header {@code h} such that ! * {@code (o==null ? h==null : o.equals(h))}, ! * if the header list contains one or more such ! * headers. Returns {@code true} if the list contained the * specified element (or equivalently, if the list changed as a * result of the call).<p> * * @param o element to be removed from this list, if present. ! * @return {@code true} if the list contained the specified element. * @see #remove(javax.xml.namespace.QName) */ @Override public boolean remove(Object o) { if (o != null) {
< prev index next >