// documentation inherited from MulticastAnnouncementEncoder public void encodeMulticastAnnouncement( MulticastAnnouncement announcement, DatagramBufferFactory bufs, InvocationConstraints constraints) throws IOException { Plaintext.checkConstraints(constraints); Plaintext.encodeMulticastAnnouncement(announcement, bufs); }
// documentation inherited from MulticastRequestDecoder public MulticastRequest decodeMulticastRequest( ByteBuffer buf, InvocationConstraints constraints, ClientSubjectChecker checker) throws IOException { Plaintext.checkConstraints(constraints); if (checker != null) { checker.checkClientSubject(null); } return Plaintext.decodeMulticastRequest(buf); }
// documentation inherited from UnicastDiscoveryServer public void handleUnicastDiscovery( UnicastResponse response, Socket socket, InvocationConstraints constraints, ClientSubjectChecker checker, Collection context, ByteBuffer received, ByteBuffer sent) throws IOException { Plaintext.checkConstraints(constraints); if (checker != null) { checker.checkClientSubject(null); } OutputStream out = new BufferedOutputStream(socket.getOutputStream()); Plaintext.writeUnicastResponse(out, response, context); out.flush(); }
// documentation inherited from UnicastDiscoveryServer public void checkUnicastDiscoveryConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException { Plaintext.checkConstraints(constraints); }