Exemplo n.º 1
0
 private void populateSessionDescriptor(CDAPMessage cdapMessage, boolean send) {
   sessionDescriptor.setAbsSyntax(cdapMessage.getAbsSyntax());
   sessionDescriptor.setAuthMech(cdapMessage.getAuthMech());
   sessionDescriptor.setAuthValue(cdapMessage.getAuthValue());
   if (send) {
     sessionDescriptor.setDestAEInst(cdapMessage.getDestAEInst());
     sessionDescriptor.setDestAEName(cdapMessage.getDestAEName());
     sessionDescriptor.setDestApInst(cdapMessage.getDestApInst());
     sessionDescriptor.setDestApName(cdapMessage.getDestApName());
     sessionDescriptor.setSrcAEInst(cdapMessage.getSrcAEInst());
     sessionDescriptor.setSrcAEName(cdapMessage.getSrcAEName());
     sessionDescriptor.setSrcApInst(cdapMessage.getSrcApInst());
     sessionDescriptor.setSrcApName(cdapMessage.getSrcApName());
   } else {
     sessionDescriptor.setDestAEInst(cdapMessage.getSrcAEInst());
     sessionDescriptor.setDestAEName(cdapMessage.getSrcAEName());
     sessionDescriptor.setDestApInst(cdapMessage.getSrcApInst());
     sessionDescriptor.setDestApName(cdapMessage.getSrcApName());
     sessionDescriptor.setSrcAEInst(cdapMessage.getDestAEInst());
     sessionDescriptor.setSrcAEName(cdapMessage.getDestAEName());
     sessionDescriptor.setSrcApInst(cdapMessage.getDestApInst());
     sessionDescriptor.setSrcApName(cdapMessage.getDestApName());
   }
   sessionDescriptor.setVersion(cdapMessage.getVersion());
 }
Exemplo n.º 2
0
 private void emptySessionDescriptor() {
   sessionDescriptor.setAbsSyntax(-1);
   sessionDescriptor.setAuthMech(null);
   sessionDescriptor.setAuthValue(null);
   sessionDescriptor.setDestAEInst(null);
   sessionDescriptor.setDestAEName(null);
   sessionDescriptor.setDestApInst(null);
   sessionDescriptor.setDestApName(null);
   sessionDescriptor.setSrcAEInst(null);
   sessionDescriptor.setSrcAEName(null);
   sessionDescriptor.setSrcApInst(null);
   sessionDescriptor.setSrcApName(null);
   sessionDescriptor.setVersion(-1);
 }