Search in sources :

Example 1 with EndpointURIFromRequestFunction

use of org.openstack4j.core.transport.functions.EndpointURIFromRequestFunction in project openstack4j by ContainX.

the class HttpCommand method initialize.

private void initialize() {
    resteasyWebTarget = new ResteasyClientBuilder().httpEngine(ApacheHttpClientEngine.create(request.getConfig())).providerFactory(ResteasyClientFactory.getInstance()).build().target(UriBuilder.fromUri(new EndpointURIFromRequestFunction().apply(request)));
    populateQueryParams(request);
    resteasyRequest = resteasyWebTarget.request();
    populateHeaders(request);
}
Also used : ResteasyClientBuilder(org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder) EndpointURIFromRequestFunction(org.openstack4j.core.transport.functions.EndpointURIFromRequestFunction)

Aggregations

ResteasyClientBuilder (org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder)1 EndpointURIFromRequestFunction (org.openstack4j.core.transport.functions.EndpointURIFromRequestFunction)1