コード例 #1
0
  public CreateToken_result(AgentRemoteValue args) throws AgentRemoteException {
    String token;

    if ((token = args.getValue(PROP_TOKEN)) == null) {
      throw new AgentRemoteException("Result does not contain a " + PROP_TOKEN + " field");
    }

    this.setToken(token);
  }
コード例 #2
0
 public Key getKey(AgentRemoteValue args) {
   return new Key(args.getValue(PROP_TYPE), args.getValue(PROP_ID), args.getValue(PROP_TYPE_NAME));
 }