public class CommunicatorBuilder extends Object
Communicator
object.Constructor and Description |
---|
CommunicatorBuilder() |
Modifier and Type | Method and Description |
---|---|
Communicator |
build()
Creates a fully initialized
Communicator object. |
CommunicatorBuilder |
withAPIEndpoint(URI apiEndpoint)
Sets the Worldline Global Collect platform API endpoint URI to use.
|
CommunicatorBuilder |
withAuthenticator(Authenticator authenticator)
Sets the
Authenticator to use. |
CommunicatorBuilder |
withConnection(Connection connection)
Sets the
Connection to use. |
CommunicatorBuilder |
withMarshaller(Marshaller marshaller)
Sets the
Marshaller to use. |
CommunicatorBuilder |
withMetadataProvider(MetadataProvider metadataProvider)
Sets the
MetadataProvider to use. |
public CommunicatorBuilder withAPIEndpoint(URI apiEndpoint)
public CommunicatorBuilder withConnection(Connection connection)
Connection
to use.public CommunicatorBuilder withAuthenticator(Authenticator authenticator)
Authenticator
to use.public CommunicatorBuilder withMetadataProvider(MetadataProvider metadataProvider)
MetadataProvider
to use.public CommunicatorBuilder withMarshaller(Marshaller marshaller)
Marshaller
to use.public Communicator build()
Communicator
object.IllegalArgumentException
- if not all required components are setCopyright © 2024 Worldline Global Collect. All rights reserved.