public boolean isConnected() { return connectionStateMachine.isConnected(); }
private void checkIsConnected() throws CDAPException { if (!connectionStateMachine.isConnected()) { throw new CDAPException( "Cannot send a message " + "because the CDAP session is not in CONNECTED state"); } }