@Override public boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }
/** * Creates a {@link MessageAddressingProperties} that can be used for creating a reply to the given {@link * EndpointReference}. The {@link #getTo() destination} property will be populated with the {@link * EndpointReference#getAddress() address} of the given EPR, and the {@link #getRelatesTo() relationship} property * will be set to the {@link #getMessageId() message id} property of this instance. the action is specified, the * * @param epr the endpoint reference to create a reply to * @param action the action */ public MessageAddressingProperties getReplyProperties(EndpointReference epr, URI action, URI messageId) { return new MessageAddressingProperties(epr, action, messageId, this.messageId); } }
/** * 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 boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }
/** * 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()); }
/** * Creates a {@link MessageAddressingProperties} that can be used for creating a reply to the given {@link * EndpointReference}. The {@link #getTo() destination} property will be populated with the {@link * EndpointReference#getAddress() address} of the given EPR, and the {@link #getRelatesTo() relationship} property * will be set to the {@link #getMessageId() message id} property of this instance. the action is specified, the * * @param epr the endpoint reference to create a reply to * @param action the action */ public MessageAddressingProperties getReplyProperties(EndpointReference epr, URI action, URI messageId) { return new MessageAddressingProperties(epr, action, messageId, this.messageId); } }
@Override public boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getTo() == null) { return false; } if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }
/** * 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()); }
/** * Creates a {@link MessageAddressingProperties} that can be used for creating a reply to the given {@link * EndpointReference}. The {@link #getTo() destination} property will be populated with the {@link * EndpointReference#getAddress() address} of the given EPR, and the {@link #getRelatesTo() relationship} property * will be set to the {@link #getMessageId() message id} property of this instance. the action is specified, the * * @param epr the endpoint reference to create a reply to * @param action the action */ public MessageAddressingProperties getReplyProperties(EndpointReference epr, URI action, URI messageId) { return new MessageAddressingProperties(epr, action, messageId, this.messageId); } }
public boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }
/** * 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()); }
/** * Creates a {@link MessageAddressingProperties} that can be used for creating a reply to the given {@link * EndpointReference}. The {@link #getTo() destination} property will be populated with the {@link * EndpointReference#getAddress() address} of the given EPR, and the {@link #getRelatesTo() relationship} property * will be set to the {@link #getMessageId() message id} property of this instance. the action is specified, the * * @param epr the endpoint reference to create a reply to * @param action the action */ public MessageAddressingProperties getReplyProperties(EndpointReference epr, URI action, URI messageId) { return new MessageAddressingProperties(epr, action, messageId, this.messageId); } }
public boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getTo() == null) { return false; } if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }
@Override public boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }
@Override public boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getTo() == null) { return false; } if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }
@Override public boolean hasRequiredProperties(MessageAddressingProperties map) { if (map.getTo() == null) { return false; } if (map.getAction() == null) { return false; } if (map.getReplyTo() != null || map.getFaultTo() != null) { return map.getMessageId() != null; } return true; }