Beispiel #1
0
 /**
  * Creates a {@code ChannelHandleType} if the relevant values are set in the instance.
  *
  * @return A {@code ChannelHandleType} instance, or {@code null} if no values are available.
  */
 @Nullable
 public ChannelHandleType buildChannelHandle() {
   if (protocolEndpoint != null || sessionId != null || binding != null) {
     ChannelHandleType chan = new ChannelHandleType();
     chan.setProtocolTerminationPoint(protocolEndpoint);
     chan.setSessionIdentifier(sessionId);
     chan.setBinding(binding);
     return chan;
   } else {
     return null;
   }
 }
Beispiel #2
0
 public HandlerBuilder setChannelHandle(ChannelHandleType channel) {
   if (channel != null) {
     HandlerBuilder b =
         new HandlerBuilder(
             contextHandle,
             ifdName,
             slotIdx,
             cardApp,
             slotHandle,
             cardType,
             cardIdentifier,
             channel.getProtocolTerminationPoint(),
             channel.getSessionIdentifier(),
             channel.getBinding());
     return b;
   } else {
     return this;
   }
 }