public void send() { method.send(this); }
static HttpClient in(HttpContext context) { return new HttpClient(context); }
private HttpClient(HttpContext context) { ClientBuilder builder = ClientBuilder.newBuilder() .property(SET_METHOD_WORKAROUND, true) .property(SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true) .register(MultiPartFeature.class) .register(logAny()) .sslContext(context.isHttpSslVerify() ? getDefaultContext() : emptyContext()); if (!context.isHttpSslVerify()) { builder.hostnameVerifier(trustAll()); } this.client = builder.build(); this.context = context; }
public void send(HttpContext context) { method.get().send(context); }
private HttpClient(HttpContext context) { ClientBuilder builder = ClientBuilder.newBuilder() .property(SET_METHOD_WORKAROUND, true) .property(SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true) .register(MultiPartFeature.class) .register(logAny()) .sslContext(context.isHttpSslVerify() ? getDefaultContext() : emptyContext()); if (!context.isHttpSslVerify()) { builder.hostnameVerifier(trustAll()); } this.client = builder.build(); this.context = context; }
public void send() { method.send(this); }
static HttpClient in(HttpContext context) { return new HttpClient(context); }
public void send(HttpContext context) { method.get().send(context); }