Package com.splunk.shuttl.archiver.http

Examples of com.splunk.shuttl.archiver.http.JsonRestEndpointCaller


      throw new RuntimeException(e);
    }
  }

  public static ShuttlPortEndpoint create(Service splunkService) {
    JsonRestEndpointCaller endpointCaller = new JsonRestEndpointCaller(
        InsecureHttpClientFactory.getInsecureHttpClient());
    return new ShuttlPortEndpoint(splunkService, endpointCaller);
  }
View Full Code Here


      throw new RuntimeException(e);
    }
  }

  public static RemoteShuttl create() {
    return new RemoteShuttl(new JsonRestEndpointCaller(new DefaultHttpClient()));
  }
View Full Code Here

          "JSON" + json.toString() + " did not contain: " + b.getName());
  }

  private JSONObject jsonFromListBucketEndpoint(String searchHeadHost,
      int searchHeadShuttlPort, String index) {
    JsonRestEndpointCaller endpointCaller = new JsonRestEndpointCaller(
        new DefaultHttpClient());
    HttpGet listBucketsRequest = new HttpGet(getListBucketRequestUri(
        searchHeadHost, searchHeadShuttlPort, index));
    return endpointCaller.getJson(listBucketsRequest);
  }
View Full Code Here

  private JsonRestEndpointCaller restEndpointCaller;

  @BeforeMethod
  public void setUp() {
    httpClient = mock(HttpClient.class, RETURNS_DEEP_STUBS);
    restEndpointCaller = new JsonRestEndpointCaller(httpClient);
  }
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.http.JsonRestEndpointCaller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.