예제 #1
0
 public ErrorResponseMessage(UUID session, UUID request, byte flag, String message) {
   super(
       RexProMessage.CURRENT_VERSION,
       MessageType.ERROR,
       flag,
       BitWorks.convertUUIDToByteArray(session),
       BitWorks.convertUUIDToByteArray(request),
       message.getBytes());
 }
예제 #2
0
  public javax.script.Bindings getBindings() throws IOException, ClassNotFoundException {
    final ByteBuffer buffer = ByteBuffer.wrap(this.Bindings);

    final byte[] theRest = new byte[buffer.remaining()];
    buffer.get(theRest);
    return BitWorks.convertBytesToBindings(theRest);
  }
예제 #3
0
 public void setRequestAsUUID(final UUID request) {
   this.Request = BitWorks.convertUUIDToByteArray(request);
 }
예제 #4
0
 public UUID requestAsUUID() {
   return BitWorks.convertByteArrayToUUID(this.Request);
 }
예제 #5
0
 public void setSessionAsUUID(final UUID session) {
   this.Session = BitWorks.convertUUIDToByteArray(session);
 }
예제 #6
0
 public UUID sessionAsUUID() {
   return BitWorks.convertByteArrayToUUID(this.Session);
 }