/** * Returns whether or not this service address is malformed. * * @return True if malformed. */ public boolean isMalformed() { return sessionName == null || connectionSpec.malformed(); }
Acceptor(Transport parent, Supervisor owner, Spec spec) throws ListenFailedException { this.parent = parent; this.owner = owner; if (spec.malformed()) throw new ListenFailedException("Malformed spec '" + spec + "'"); serverChannel = createServerSocketChannel(spec); thread.setDaemon(true); thread.start(); }
public Connection connect() { if (spec == null || spec.malformed()) { setLostReason(new IllegalArgumentException("jrt: malformed or missing spec")); return this; } try { socket = parent.createCryptoSocket(SocketChannel.open(spec.address()), false); } catch (Exception e) { setLostReason(e); } return this; }