/** * Returns the <code>Destination</code> that the <code>Message</code> targets. * * @return The <code>Destination</code> that the <code>Message</code> targets. * @throws <code>MessageException</code> if no such <code>Destination</code> exists. */ public Destination getDestination(Message message) { String id = message.getDestination(); Destination result = getDestination(id); if (result == null) { throw new MessageException ("No destination '" + id + "' exists in service " + getClass().getName()); } return result; }
/** * Returns the <code>Destination</code> that the <code>Message</code> targets. * * @param message the message to examine * @return The <code>Destination</code> that the <code>Message</code> targets. * @throws MessageException if no such <code>Destination</code> exists. */ public Destination getDestination(Message message) { String id = message.getDestination(); Destination result = getDestination(id); if (result == null) { throw new MessageException ("No destination '" + id + "' exists in service " + getClass().getName()); } return result; }
/** * Returns the <code>Destination</code> that the <code>Message</code> targets. * * @param message the message to examine * @return The <code>Destination</code> that the <code>Message</code> targets. * @throws MessageException if no such <code>Destination</code> exists. */ public Destination getDestination(Message message) { String id = message.getDestination(); Destination result = getDestination(id); if (result == null) { throw new MessageException ("No destination '" + id + "' exists in service " + getClass().getName()); } return result; }
if (getDestination(id) == destination)
if (getDestination(id) == destination)
if (getDestination(id) == destination)