예제 #1
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;
  }
예제 #2
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;
  }
예제 #3
0
  private static RequestInfo buildRequestInfo(SecurityToken securityToken, String sessionTicket) {
    RequestInfo rInfo = new RequestInfo();
    if (securityToken != null) {
      rInfo.setSecurityToken(securityToken);
    }

    OsaClientInfo osaClientInfo = new OsaClientInfo();
    osaClientInfo.setOriginIp(IP);
    osaClientInfo.setLocale("en");
    rInfo.setClientInfo(osaClientInfo);

    return rInfo;
  }