| Modifier and Type | Method and Description |
|---|---|
static JCurl.Builder |
JCurl.builder()
Create a builder.
|
JCurl.Builder |
JCurl.Builder.connectTimeout(int milliseconds)
How long to wait for a connection to the remote resource.
|
JCurl.Builder |
JCurl.Builder.cookie(String name,
String value)
Send a custom cookie with the request.
|
JCurl.Builder |
JCurl.Builder.data(String payload)
Send a POST request with DATA as request body.
|
JCurl.Builder |
JCurl.Builder.expect(int expectedStatus)
Add HTTP STATUS as an expected response code.
|
JCurl.Builder |
JCurl.Builder.extract(String node)
Iterate over a JSON array of objects returned by the call content and extract the value of NODE.
|
JCurl.Builder |
JCurl.Builder.extract(String label,
String node)
Extract NODE from a JSON object returned by the call and return as "LABEL=NODE".
|
JCurl.Builder |
JCurl.Builder.extractCookies(boolean extract)
Extract cookies returned by the call as KEY=VALUE pairs.
|
JCurl.Builder |
JCurl.Builder.form(String name,
String value)
Send a POST request with CONTENT as "key=value" pairs corresponding to a HTML form.
|
JCurl.Builder |
JCurl.Builder.header(String name,
String value)
Send a custom header with the request.
|
JCurl.Builder |
JCurl.Builder.insecure(boolean disableChecks)
Disable checks for an HTTPS request.
|
JCurl.Builder |
JCurl.Builder.keystore(String store)
The keystore containing the certificate to use for authentication.
|
JCurl.Builder |
JCurl.Builder.method(JCurl.HttpMethod method)
Set the HTTP type of the request.
|
JCurl.Builder |
JCurl.Builder.nonProxyHosts(String hosts)
Bypass the proxy (if defined) for the specified list of |-separated hosts.
|
JCurl.Builder |
JCurl.Builder.proxy(String proxy)
Proxy the request through the specified URL.
|
JCurl.Builder |
JCurl.Builder.query(String name,
String value)
Set request query parameters to be appended to the target URL as "name=value" pairs separated by "&";
|
JCurl.Builder |
JCurl.Builder.readTimeout(int milliseconds)
How long to wait for a response from the remote resource.
|
JCurl.Builder |
JCurl.Builder.storepass(String pass)
The keystore password.
|
JCurl.Builder |
JCurl.Builder.storetype(String type)
The keystore type.
|
JCurl.Builder |
JCurl.Builder.trustAllCertificates(boolean disableChecks)
Disable SSL certificate verification.
|
JCurl.Builder |
JCurl.Builder.trustAllHostnames(boolean disableChecks)
Disable SSL hostname verification.
|
JCurl.Builder |
JCurl.Builder.trustpass(String pass)
The truststore password.
|
JCurl.Builder |
JCurl.Builder.truststore(String store)
The truststore containing the server certificate.
|
JCurl.Builder |
JCurl.Builder.trusttype(String type)
The truststore type.
|
JCurl.Builder |
JCurl.Builder.url(String url)
The URL to connect to.
|
JCurl.Builder |
JCurl.Builder.verbosity(int level)
Output verbosity.
|
Copyright © 2018 The Symphony Software Foundation. All rights reserved.