Exemplo n.º 1
0
 // documentation inherited from MulticastAnnouncementEncoder
 public void encodeMulticastAnnouncement(
     MulticastAnnouncement announcement,
     DatagramBufferFactory bufs,
     InvocationConstraints constraints)
     throws IOException {
   Plaintext.checkConstraints(constraints);
   Plaintext.encodeMulticastAnnouncement(announcement, bufs);
 }
Exemplo n.º 2
0
 // 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);
 }
Exemplo n.º 3
0
 // 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();
 }
Exemplo n.º 4
0
 // documentation inherited from UnicastDiscoveryServer
 public void checkUnicastDiscoveryConstraints(InvocationConstraints constraints)
     throws UnsupportedConstraintException {
   Plaintext.checkConstraints(constraints);
 }