Ejemplo n.º 1
0
 public static ViewState pop(Message message) {
   try {
     return new ViewState(
         message.popString(),
         Group.pop(message),
         ViewID.pop(message),
         ArrayOptimized.popArrayViewID(message),
         ArrayOptimized.popArrayEndpt(message),
         ArrayOptimized.popArrayInetWithPort(message));
   } catch (AppiaGroupException ex) {
     throw new MessageException("Error poping view state.", ex);
   }
 }
Ejemplo n.º 2
0
 public static ViewState peek(Message message) {
   try {
     ViewState vs =
         new ViewState(
             message.popString(),
             Group.pop(message),
             ViewID.pop(message),
             ArrayOptimized.popArrayViewID(message),
             ArrayOptimized.popArrayEndpt(message),
             ArrayOptimized.popArrayInetWithPort(message));
     ViewState.push(vs, message);
     return vs;
   } catch (AppiaGroupException ex) {
     throw new MessageException("Error peeking view state from message.", ex);
   }
 }