Class SimpleHttpClient.Builder
- java.lang.Object
-
- org.opendaylight.aaa.shiro.realm.util.http.SimpleHttpClient.Builder
-
- Enclosing class:
- SimpleHttpClient
public static class SimpleHttpClient.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleHttpClient
build()
Build the client.SimpleHttpClient.Builder
hostnameVerifier(HostnameVerifier verifier)
Sets the hostname verifier the request is made with.SimpleHttpClient.Builder
provider(Class<?> provider)
Sets a JAX-RS provider to use for this request.SimpleHttpClient.Builder
sslContext(SSLContext context)
Sets the SSLContext to be used for SSL requests.
-
-
-
Method Detail
-
sslContext
public SimpleHttpClient.Builder sslContext(SSLContext context)
Sets the SSLContext to be used for SSL requests.- Parameters:
context
- the SSLContext.- Returns:
- self, the client builder.
-
hostnameVerifier
public SimpleHttpClient.Builder hostnameVerifier(HostnameVerifier verifier)
Sets the hostname verifier the request is made with.- Parameters:
verifier
- the hostname verifier.- Returns:
- self, the client builder.
-
provider
public SimpleHttpClient.Builder provider(Class<?> provider)
Sets a JAX-RS provider to use for this request. Can be called multiple times to add multiple providers.- Parameters:
provider
- the provider.- Returns:
- self, the client builder.
-
build
public SimpleHttpClient build()
Build the client.- Returns:
- the client.
-
-