Tabnine Logo
org.jboss.resteasy.client
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.resteasy.client

Best Java code snippets using org.jboss.resteasy.client (Showing top 20 results out of 585)

origin: kiegroup/optaplanner

@Test
public void getSolution(@ArquillianResource URL baseUrl) {
  RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
  VehicleRoutingRestService vehicleRoutingRestService
      = ProxyFactory.create(VehicleRoutingRestService.class, baseUrl.toExternalForm() + "rest");
  JsonVehicleRoutingSolution solution = vehicleRoutingRestService.getSolution();
  assertNotNull(solution);
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

public <T> T get(String uriTemplate, Class<T> type, Object... params)
    throws Exception
{
 return createRequest(uriTemplate).followRedirects(true).pathParameters(
     params).get(type).getEntity();
}
origin: org.jboss.resteasy/resteasy-legacy

public ClientRequest addLink(String title, String rel, String href, String type)
{
 Link link = new Link(title, rel, href, type, null);
 return addLink(link);
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

public static <T> T create(Class<T> clazz, String base)
{
  return create(clazz, base, ClientRequest.getDefaultExecutor());
}
origin: org.jboss.resteasy/resteasy-client

public void build(ClientRequest request, Object object)
{
 request.body(mediaType, object, type, genericType, annotations);
}
origin: org.artificer/artificer-client

/**
 * Quietly closes the resteasy client (releases the connection).
 * @param response
 */
private void closeQuietly(ClientResponse<?> response) {
  if (response != null) {
    response.releaseConnection();
  }
}
origin: org.jboss.resteasy/resteasy-legacy

public ClientResponse httpMethod(String httpMethod) throws Exception
{
 this.httpMethod = httpMethod;
 return execute();
}
origin: org.jboss.resteasy/resteasy-legacy

public static <T> ClientInvoker createClientInvoker(Class<T> clazz, Method method, URI baseUri, ClientExecutor executor, ResteasyProviderFactory providerFactory, EntityExtractorFactory extractorFactory, Map<String, Object> requestAttributes)
{
  return createClientInvoker(clazz, method, baseUri, new ProxyConfig(null, executor, providerFactory, extractorFactory, requestAttributes, null, null));
}

origin: org.jboss.resteasy/resteasy-legacy

public static <T> ProxyBuilder<T> build(Class<T> iface, String base)
{
  return new ProxyBuilder<T>(iface, ProxyFactory.createUri(base));
}
origin: org.jboss.resteasy/resteasy-legacy

public ClientRequestFactory(ClientExecutor executor,
              ResteasyProviderFactory providerFactory, URI base)
{
 init(executor, providerFactory, base);
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

private void setBody(ClientRequest request, MockHttpRequest mockHttpRequest) throws IOException
{
 if (request.getBody() == null)
   return;
}
origin: org.jboss.resteasy/resteasy-legacy

public LinkHeader addLink(final String title, final String rel, final String href, final String type)
{
 final Link link = new Link(title, rel, href, type, null);
 return addLink(link);
}
origin: org.jboss.resteasy/resteasy-legacy

 public String extractEntity(ClientRequestContext context, Object... args)
 {
   Link link2 = getLink(link, context);
   return link2 == null ? null : link2.getHref();
 }
};
origin: org.jboss.resteasy/resteasy-legacy

public <T> T get(String uriTemplate, Class<T> type, Object... params)
    throws Exception
{
 return createRequest(uriTemplate).followRedirects(true).pathParameters(
     params).get(type).getEntity();
}
origin: org.jboss.resteasy/resteasy-legacy

public static <T> T create(Class<T> clazz, String base)
{
  return create(clazz, base, ClientRequest.getDefaultExecutor());
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

public ClientResponse httpMethod(String httpMethod) throws Exception
{
 this.httpMethod = httpMethod;
 return execute();
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

public static <T> ClientInvoker createClientInvoker(Class<T> clazz, Method method, URI baseUri, ClientExecutor executor, ResteasyProviderFactory providerFactory, EntityExtractorFactory extractorFactory, Map<String, Object> requestAttributes)
{
  return createClientInvoker(clazz, method, baseUri, new ProxyConfig(null, executor, providerFactory, extractorFactory, requestAttributes, null, null));
}
 
origin: org.jboss.resteasy/resteasy-jaxrs-20

public static <T> ProxyBuilder<T> build(Class<T> iface, String base)
{
  return new ProxyBuilder<T>(iface, ProxyFactory.createUri(base));
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

public ClientRequestFactory(ClientExecutor executor,
              ResteasyProviderFactory providerFactory)
{
 init(executor, providerFactory, null);
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

public ClientRequestFactory(ClientExecutor executor,
              ResteasyProviderFactory providerFactory, URI base)
{
 init(executor, providerFactory, base);
}
org.jboss.resteasy.client

Most used classes

  • ResteasyClientBuilder
    Abstraction for creating Clients. Allows SSL configuration. Uses Apache Http Client under the covers
  • ResteasyWebTarget
  • ResteasyClient
  • ClientRequest
    Create a hand coded request to send to the server. You call methods like accept(), body(), pathParam
  • ClientResponse
  • ApacheHttpClient4Engine,
  • ProxyFactory,
  • ProxyBuilder,
  • BaseClientResponse,
  • BasicAuthentication,
  • ClientRequestFactory,
  • ClientRequestHeaders,
  • ClientExecutor,
  • ClientResponseFailure,
  • ClientInvocation,
  • LocalResteasyProviderFactory,
  • ClientResponse,
  • BaseClientResponse$BaseClientResponseStreamFactory,
  • SelfExpandingBufferredInputStream
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now