/** * 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 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 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); }
/** * Gets the {@code wsa:MessageID} header content as String. * * @return * null if the incoming SOAP message didn't have the header. */ // WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1 @Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID}) public String getMessageID() { if (packet.getMessage() == null) { return null; } return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion); }
/** * Gets the {@code wsa:MessageID} header content as String. * * @return * null if the incoming SOAP message didn't have the header. */ // WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1 @Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID}) public String getMessageID() { if (packet.getMessage() == null) { return null; } return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion); }
/** * Gets the {@code wsa:MessageID} header content as String. * * @return * null if the incoming SOAP message didn't have the header. */ // WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1 @Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID}) public String getMessageID() { if (packet.getMessage() == null) { return null; } return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion); }
private void dumpParam(T param, String method) { if (param instanceof Packet) { Packet message = (Packet)param; String action; String msgId; if (LOGGER.isLoggable(Level.FINE)) { AddressingVersion av = DispatchImpl.this.getBinding().getAddressingVersion(); SOAPVersion sv = DispatchImpl.this.getBinding().getSOAPVersion(); action = av != null && message.getMessage() != null ? AddressingUtils.getAction(message.getMessage().getHeaders(), av, sv) : null; msgId = av != null && message.getMessage() != null ? AddressingUtils.getMessageID(message.getMessage().getHeaders(), av, sv) : null; LOGGER.fine("In DispatchImpl." + method + " for message with action: " + action + " and msg ID: " + msgId + " msg: " + message.getMessage()); if (message.getMessage() == null) { LOGGER.fine("Dispatching null message for action: " + action + " and msg ID: " + msgId); } } } } public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
private void dumpParam(T param, String method) { if (param instanceof Packet) { Packet message = (Packet)param; String action; String msgId; if (LOGGER.isLoggable(Level.FINE)) { AddressingVersion av = DispatchImpl.this.getBinding().getAddressingVersion(); SOAPVersion sv = DispatchImpl.this.getBinding().getSOAPVersion(); action = av != null && message.getMessage() != null ? AddressingUtils.getAction(message.getMessage().getHeaders(), av, sv) : null; msgId = av != null && message.getMessage() != null ? AddressingUtils.getMessageID(message.getMessage().getHeaders(), av, sv) : null; LOGGER.fine("In DispatchImpl." + method + " for message with action: " + action + " and msg ID: " + msgId + " msg: " + message.getMessage()); if (message.getMessage() == null) { LOGGER.fine("Dispatching null message for action: " + action + " and msg ID: " + msgId); } } } } public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
for (AddressingVersion av: AddressingVersion.values()) { action = packet.getMessage() != null ? AddressingUtils.getAction(packet.getMessage().getHeaders(), av, sv) : null; msgId = packet.getMessage() != null ? AddressingUtils.getMessageID(packet.getMessage().getHeaders(), av, sv) : null; if (action != null || msgId != null) { break;
/** * Retuns a unique id for the message. * <p><p> * @see {@link #getID(com.sun.xml.ws.api.WSBinding)} for detailed description. * @param av WS-Addressing version * @param sv SOAP version * @return unique id for the message * @deprecated */ public @NotNull String getID(AddressingVersion av, SOAPVersion sv) { String uuid = null; if (av != null) { uuid = AddressingUtils.getMessageID(getHeaders(), av, sv); } if (uuid == null) { uuid = generateMessageID(); getHeaders().add(new StringHeader(av.messageIDTag, uuid)); } return uuid; }
for (AddressingVersion av: AddressingVersion.values()) { action = packet.getMessage() != null ? AddressingUtils.getAction(packet.getMessage().getHeaders(), av, sv) : null; msgId = packet.getMessage() != null ? AddressingUtils.getMessageID(packet.getMessage().getHeaders(), av, sv) : null; if (action != null || msgId != null) { break;
/** * Retuns a unique id for the message. * <p><p> * @see {@link #getID(com.sun.xml.ws.api.WSBinding)} for detailed description. * @param av WS-Addressing version * @param sv SOAP version * @return unique id for the message * @deprecated */ public @NotNull String getID(AddressingVersion av, SOAPVersion sv) { String uuid = null; if (av != null) { uuid = AddressingUtils.getMessageID(getHeaders(), av, sv); } if (uuid == null) { uuid = generateMessageID(); getHeaders().add(new StringHeader(av.messageIDTag, uuid)); } return uuid; }
/** * Retuns a unique id for the message. * <p><p> * @see {@link #getID(com.sun.xml.ws.api.WSBinding)} for detailed description. * @param av WS-Addressing version * @param sv SOAP version * @return unique id for the message * @deprecated */ public @NotNull String getID(AddressingVersion av, SOAPVersion sv) { String uuid = null; if (av != null) { uuid = AddressingUtils.getMessageID(getHeaders(), av, sv); } if (uuid == null) { uuid = generateMessageID(); getHeaders().add(new StringHeader(av.messageIDTag, uuid)); } return uuid; }
for (AddressingVersion av: AddressingVersion.values()) { action = packet.getMessage() != null ? AddressingUtils.getAction(packet.getMessage().getHeaders(), av, sv) : null; msgId = packet.getMessage() != null ? AddressingUtils.getMessageID(packet.getMessage().getHeaders(), av, sv) : null; if (action != null || msgId != null) { break;
private void dumpParam(T param, String method) { if (param instanceof Packet) { Packet message = (Packet)param; String action; String msgId; if (LOGGER.isLoggable(Level.FINE)) { AddressingVersion av = DispatchImpl.this.getBinding().getAddressingVersion(); SOAPVersion sv = DispatchImpl.this.getBinding().getSOAPVersion(); action = av != null && message.getMessage() != null ? AddressingUtils.getAction(message.getMessage().getHeaders(), av, sv) : null; msgId = av != null && message.getMessage() != null ? AddressingUtils.getMessageID(message.getMessage().getHeaders(), av, sv) : null; LOGGER.fine("In DispatchImpl." + method + " for message with action: " + action + " and msg ID: " + msgId + " msg: " + message.getMessage()); if (message.getMessage() == null) { LOGGER.fine("Dispatching null message for action: " + action + " and msg ID: " + msgId); } } } } public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
@Override public @NotNull NextAction processResponse(Packet response) { // if one-way then, no validation if (response.getMessage() != null) { response = validateInboundHeaders(response); response.addSatellite(new WsaPropertyBag(addressingVersion,soapVersion,response)); String msgId = AddressingUtils. getMessageID(response.getMessage().getHeaders(), addressingVersion, soapVersion); response.put(WsaPropertyBag.WSA_MSGID_FROM_REQUEST, msgId); } return doReturnWith(response); }
@Override public @NotNull NextAction processResponse(Packet response) { // if one-way then, no validation if (response.getMessage() != null) { response = validateInboundHeaders(response); response.addSatellite(new WsaPropertyBag(addressingVersion,soapVersion,response)); String msgId = AddressingUtils. getMessageID(response.getMessage().getHeaders(), addressingVersion, soapVersion); response.put(WsaPropertyBag.WSA_MSGID_FROM_REQUEST, msgId); } return doReturnWith(response); }
@Override public @NotNull NextAction processResponse(Packet response) { // if one-way then, no validation if (response.getMessage() != null) { response = validateInboundHeaders(response); response.addSatellite(new WsaPropertyBag(addressingVersion,soapVersion,response)); String msgId = AddressingUtils. getMessageID(response.getMessage().getHeaders(), addressingVersion, soapVersion); response.put(WsaPropertyBag.WSA_MSGID_FROM_REQUEST, msgId); } return doReturnWith(response); }
replyTo = AddressingUtils.getReplyTo(hl, addressingVersion, soapVersion); faultTo = AddressingUtils.getFaultTo(hl, addressingVersion, soapVersion); msgId = AddressingUtils.getMessageID(hl, addressingVersion, soapVersion); } catch (InvalidAddressingHeaderException e) {
mid = AddressingUtils.getMessageID(msg.getHeaders(), av, sv);