コード例 #1
0
  private static RequestInfo buildMetadataRequestInfo(SecurityToken sToken) {
    RequestInfo rInfo = new RequestInfo();

    // Create client info params
    OsaClientInfo clientInfo = new OsaClientInfo();

    ClientId clientId = new ClientId();
    clientId.setId("testframework");
    clientInfo.setClientId(clientId);

    InstanceId instanceId = new InstanceId();
    instanceId.setId("1");
    clientInfo.setInstanceId(instanceId);

    clientInfo.setOriginIp("127.0.0.1");
    clientInfo.setOsaSuiteVersion("local");
    rInfo.setClientInfo(clientInfo);

    ProductId productId = new ProductId();
    productId.setId("SOLR-TAA-IC");
    rInfo.setProductId(productId);

    rInfo.setSecurityToken(sToken);

    return rInfo;
  }
コード例 #2
0
  private static RequestInfo buildRsiRequerstInfo(SecurityToken securityToken) {
    RequestInfo rInfo = new RequestInfo();

    // Create client info params
    OsaClientInfo clientInfo = new OsaClientInfo();

    ClientId clientId = new ClientId();
    clientId.setId("testframework");
    clientInfo.setClientId(clientId);

    InstanceId instanceId = new InstanceId();
    instanceId.setId("1");
    clientInfo.setInstanceId(instanceId);

    clientInfo.setOriginIp("1");

    ClientInfo origin = new ClientInfo();
    origin.setClientId(clientId);
    origin.setInstanceId(instanceId);
    clientInfo.setOrigin(origin);

    rInfo.setClientInfo(clientInfo);

    rInfo.setSecurityToken(securityToken);

    ProductId productId = new ProductId();
    productId.setId("SOLR-TAA-IC");
    rInfo.setProductId(productId);
    rInfo.setNoCache(true);
    return rInfo;
  }