/** * Sets the fault to endpoint reference by string. * @param faultTo the faultTo to set */ public void setFaultTo(String faultTo) { try { this.faultTo = new EndpointReference(new URI(faultTo)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid faultTo uri", e); } } }
/** * Constructs a new {@link MessageAddressingProperties} that forms a reply to the given EPR. * * @param epr the endpoint reference to create a reply for * @param action the value of the action property * @param messageId the value of the message id property * @param relatesTo the value of the relates to property */ private MessageAddressingProperties(EndpointReference epr, URI action, URI messageId, URI relatesTo) { this.to = epr.getAddress(); this.action = action; this.messageId = messageId; this.relatesTo = relatesTo; this.referenceParameters = epr.getReferenceParameters(); this.referenceProperties = epr.getReferenceProperties(); this.from = null; this.replyTo = null; this.faultTo = null; }
@Override public final boolean hasAnonymousAddress(EndpointReference epr) { URI anonymous = getAnonymous(); return anonymous != null && anonymous.equals(epr.getAddress()); }
@Override public final boolean hasAnonymousAddress(EndpointReference epr) { URI anonymous = getAnonymous(); return anonymous != null && anonymous.equals(epr.getAddress()); }
/** * Constructs a new {@link MessageAddressingProperties} that forms a reply to the given EPR. * * @param epr the endpoint reference to create a reply for * @param action the value of the action property * @param messageId the value of the message id property * @param relatesTo the value of the relates to property */ private MessageAddressingProperties(EndpointReference epr, URI action, URI messageId, URI relatesTo) { this.to = epr.getAddress(); this.action = action; this.messageId = messageId; this.relatesTo = relatesTo; this.referenceParameters = epr.getReferenceParameters(); this.referenceProperties = epr.getReferenceProperties(); this.from = null; this.replyTo = null; this.faultTo = null; }
@Override protected EndpointReference getDefaultReplyTo(EndpointReference from) { return new EndpointReference(getAnonymous()); }
@Override public final boolean hasNoneAddress(EndpointReference epr) { URI none = getNone(); return none != null && none.equals(epr.getAddress()); }
/** * Constructs a new {@link MessageAddressingProperties} that forms a reply to the given EPR. * * @param epr the endpoint reference to create a reply for * @param action the value of the action property * @param messageId the value of the message id property * @param relatesTo the value of the relates to property */ private MessageAddressingProperties(EndpointReference epr, URI action, URI messageId, URI relatesTo) { this.to = epr.getAddress(); this.action = action; this.messageId = messageId; this.relatesTo = relatesTo; this.referenceParameters = epr.getReferenceParameters(); this.referenceProperties = epr.getReferenceProperties(); this.from = null; this.replyTo = null; this.faultTo = null; }
/** * Sets the from endpoint reference by string. * @param from the from to set */ public void setFrom(String from) { try { this.from = new EndpointReference(new URI(from)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid from uri", e); } }
@Override public final boolean hasNoneAddress(EndpointReference epr) { URI none = getNone(); return none != null && none.equals(epr.getAddress()); }
/** * Constructs a new {@link MessageAddressingProperties} that forms a reply to the given EPR. * * @param epr the endpoint reference to create a reply for * @param action the value of the action property * @param messageId the value of the message id property * @param relatesTo the value of the relates to property */ private MessageAddressingProperties(EndpointReference epr, URI action, URI messageId, URI relatesTo) { this.to = epr.getAddress(); this.action = action; this.messageId = messageId; this.relatesTo = relatesTo; this.referenceParameters = epr.getReferenceParameters(); this.referenceProperties = epr.getReferenceProperties(); this.from = null; this.replyTo = null; this.faultTo = null; }
/** * Sets the reply to endpoint reference by string. * @param replyTo the replyTo to set */ public void setReplyTo(String replyTo) { try { this.replyTo = new EndpointReference(new URI(replyTo)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid replyTo uri", e); } }
@Override public final boolean hasAnonymousAddress(EndpointReference epr) { URI anonymous = getAnonymous(); return anonymous != null && anonymous.equals(epr.getAddress()); }
if (epr == null || epr.getAddress() == null) { return; Document document = documentBuilder.newDocument(); Element address = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getAddressName())); address.setTextContent(epr.getAddress().toString()); transform(new DOMSource(address), headerElement.getResult()); if (getReferenceParametersName() != null && !epr.getReferenceParameters().isEmpty()) { Element referenceParams = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getReferenceParametersName())); addReferenceNodes(new DOMResult(referenceParams), epr.getReferenceParameters()); transform(new DOMSource(referenceParams), headerElement.getResult()); if (getReferencePropertiesName() != null && !epr.getReferenceProperties().isEmpty()) { Element referenceProps = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getReferencePropertiesName())); addReferenceNodes(new DOMResult(referenceProps), epr.getReferenceProperties()); transform(new DOMSource(referenceProps), headerElement.getResult());
@Override protected EndpointReference getDefaultReplyTo(EndpointReference from) { return new EndpointReference(getAnonymous()); }
@Override public final boolean hasNoneAddress(EndpointReference epr) { URI none = getNone(); return none != null && none.equals(epr.getAddress()); }
if (epr == null || epr.getAddress() == null) { return; Document document = documentBuilder.newDocument(); Element address = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getAddressName())); address.setTextContent(epr.getAddress().toString()); transform(new DOMSource(address), headerElement.getResult()); if (getReferenceParametersName() != null && !epr.getReferenceParameters().isEmpty()) { Element referenceParams = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getReferenceParametersName())); addReferenceNodes(new DOMResult(referenceParams), epr.getReferenceParameters()); transform(new DOMSource(referenceParams), headerElement.getResult()); if (getReferencePropertiesName() != null && !epr.getReferenceProperties().isEmpty()) { Element referenceProps = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getReferencePropertiesName())); addReferenceNodes(new DOMResult(referenceProps), epr.getReferenceProperties()); transform(new DOMSource(referenceProps), headerElement.getResult());
@Override protected EndpointReference getDefaultReplyTo(EndpointReference from) { return new EndpointReference(getAnonymous()); }
public final boolean hasNoneAddress(EndpointReference epr) { URI none = getNone(); return none != null && none.equals(epr.getAddress()); }
if (epr == null || epr.getAddress() == null) { return; Document document = documentBuilder.newDocument(); Element address = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getAddressName())); address.setTextContent(epr.getAddress().toString()); transform(new DOMSource(address), headerElement.getResult()); if (getReferenceParametersName() != null && !epr.getReferenceParameters().isEmpty()) { Element referenceParams = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getReferenceParametersName())); addReferenceNodes(new DOMResult(referenceParams), epr.getReferenceParameters()); transform(new DOMSource(referenceParams), headerElement.getResult()); if (getReferencePropertiesName() != null && !epr.getReferenceProperties().isEmpty()) { Element referenceProps = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getReferencePropertiesName())); addReferenceNodes(new DOMResult(referenceProps), epr.getReferenceProperties()); transform(new DOMSource(referenceProps), headerElement.getResult());