예제 #1
0
파일: Server.java 프로젝트: dxd/2apl--old-
 // documentation inherited from MulticastAnnouncementEncoder
 public void encodeMulticastAnnouncement(
     MulticastAnnouncement announcement,
     DatagramBufferFactory bufs,
     InvocationConstraints constraints)
     throws IOException {
   Plaintext.checkConstraints(constraints);
   Plaintext.encodeMulticastAnnouncement(announcement, bufs);
 }
예제 #2
0
파일: Server.java 프로젝트: dxd/2apl--old-
 // 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
파일: Server.java 프로젝트: dxd/2apl--old-
 // 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
파일: Server.java 프로젝트: dxd/2apl--old-
 // documentation inherited from UnicastDiscoveryServer
 public void checkUnicastDiscoveryConstraints(InvocationConstraints constraints)
     throws UnsupportedConstraintException {
   Plaintext.checkConstraints(constraints);
 }