public class AEMHeadlessClientBuilder
extends java.lang.Object
AEMHeadlessClient.| Modifier and Type | Method and Description |
|---|---|
@NotNull AEMHeadlessClientBuilder |
basicAuth(@NotNull java.lang.String user,
@NotNull java.lang.String password)
Configures the client for basic authentication.
|
@NotNull AEMHeadlessClient |
build() |
@NotNull AEMHeadlessClientBuilder |
connectTimeout(int connectTimeout)
Configures the connect timeout.
|
@NotNull AEMHeadlessClientBuilder |
endpoint(@NotNull java.lang.String uri)
Convenience method to allow to set the URI as string.
|
@NotNull AEMHeadlessClientBuilder |
endpoint(@NotNull java.net.URI uri)
Sets the endpoint for the GraphQL client.
|
@NotNull AEMHeadlessClientBuilder |
readTimeout(int readTimeout)
Configures the read timeout.
|
@NotNull AEMHeadlessClientBuilder |
tokenAuth(@NotNull java.lang.String token)
Configures the client for token authentication.
|
@NotNull public @NotNull AEMHeadlessClientBuilder endpoint(@NotNull @NotNull java.net.URI uri)
http:/myserver:8080), then the default endpoint for GraphQL queries
/content/graphql/global/endpoint.json is taken.uri - the endpoint URI@NotNull public @NotNull AEMHeadlessClientBuilder endpoint(@NotNull @NotNull java.lang.String uri) throws java.net.URISyntaxException
endpoint(URI) on how URIs are interpreted.uri - the uri in string formatjava.net.URISyntaxException - if the uri is invalid@NotNull public @NotNull AEMHeadlessClientBuilder basicAuth(@NotNull @NotNull java.lang.String user, @NotNull @NotNull java.lang.String password)
user - the userpassword - the password@NotNull public @NotNull AEMHeadlessClientBuilder tokenAuth(@NotNull @NotNull java.lang.String token)
token - the bearer token@NotNull public @NotNull AEMHeadlessClientBuilder connectTimeout(int connectTimeout)
connectTimeout - the connect timeout@NotNull public @NotNull AEMHeadlessClientBuilder readTimeout(int readTimeout)
readTimeout - the connect timeout@NotNull public @NotNull AEMHeadlessClient build()
Copyright © 2021 Adobe. All rights reserved.