/** * Delegates to <code>doSend()</code> after checking that we are connected. * * @see ca.uhn.hl7v2.protocol.TransportLayer#send(Transportable) */ public void send(Transportable theMessage) throws TransportException { if (!isConnected()) { throw new TransportException("Can't send because TransportLayer is not connected"); } doSend(theMessage); log.debug("Sent: {}", (theMessage == null ? null : theMessage.getMessage())); }
/** * Delegates to <code>doSend()</code> after checking that we are connected. * * @see ca.uhn.hl7v2.protocol.TransportLayer#send(Transportable) */ public void send(Transportable theMessage) throws TransportException { if (!isConnected()) { throw new TransportException("Can't send because TransportLayer is not connected"); } doSend(theMessage); log.debug("Sent: {}", (theMessage == null ? null : theMessage.getMessage())); }