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