Package com.onlinepayments
Class CommunicatorBuilder
java.lang.Object
com.onlinepayments.CommunicatorBuilder
Builder for a
Communicator object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a fully initializedCommunicatorobject.withAPIEndpoint(URI apiEndpoint) Sets the Online Payments platform API endpoint URI to use.withAuthenticator(Authenticator authenticator) Sets theAuthenticatorto use.withConnection(Connection connection) Sets theConnectionto use.withMarshaller(Marshaller marshaller) Sets theMarshallerto use.withMetadataProvider(MetadataProvider metadataProvider) Sets theMetadataProviderto use.
-
Constructor Details
-
CommunicatorBuilder
public CommunicatorBuilder()
-
-
Method Details
-
withAPIEndpoint
Sets the Online Payments platform API endpoint URI to use. -
withConnection
Sets theConnectionto use. -
withAuthenticator
Sets theAuthenticatorto use. -
withMetadataProvider
Sets theMetadataProviderto use. -
withMarshaller
Sets theMarshallerto use. -
build
Creates a fully initializedCommunicatorobject.- Throws:
IllegalArgumentException- if not all required components are set
-