- Base64 - Class in uk.co.visalia.brightpearl.apiclient.util
-
Functions used internally, available in other libraries but replicated to avoid unwanted dependencies.
- Base64() - Constructor for class uk.co.visalia.brightpearl.apiclient.util.Base64
-
- BrightpearlApiClient - Class in uk.co.visalia.brightpearl.apiclient
-
Main client class for the Brightpearl API.
- brightpearlApiClient() - Static method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
Static builder method for method chaining, fluent builder style.
- BrightpearlApiClient.ApiSession - Class in uk.co.visalia.brightpearl.apiclient
-
An authenticated API session configured with a Brightpearl customer account and headers needed to authenticate calls
for a single app of any type.
- BrightpearlApiClientFactory - Class in uk.co.visalia.brightpearl.apiclient
-
- BrightpearlApiClientFactory() - Constructor for class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
- BrightpearlAuthException - Exception in uk.co.visalia.brightpearl.apiclient.exception
-
- BrightpearlAuthException() - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlAuthException
-
- BrightpearlAuthException(String) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlAuthException
-
- BrightpearlClientException - Exception in uk.co.visalia.brightpearl.apiclient.exception
-
This is the superclass for exceptions thrown by this client library.
- BrightpearlClientException(String) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlClientException
-
- BrightpearlClientException(String, Exception) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlClientException
-
- BrightpearlHttpException - Exception in uk.co.visalia.brightpearl.apiclient.exception
-
Subclass of
BrightpearlClientException thrown when a request fails due to an HTTP transport error, and when a
response is received but cannot be parsed into the type expected.
- BrightpearlHttpException(ClientErrorCode) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlHttpException
-
- BrightpearlHttpException(ClientErrorCode, String) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlHttpException
-
- BrightpearlHttpException(ClientErrorCode, Exception) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlHttpException
-
- BrightpearlLegacyApiSession - Class in uk.co.visalia.brightpearl.apiclient
-
For use with Brightpearl's old method of authentication - staff tokens access using staff email address and password.
- BrightpearlLegacyApiSessionFactory - Class in uk.co.visalia.brightpearl.apiclient
-
- BrightpearlLegacyApiSessionFactory() - Constructor for class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
- BrightpearlRequestCapException - Exception in uk.co.visalia.brightpearl.apiclient.exception
-
This exception is thrown when a request cap error is detected, caused by too many requests being made to a single
account.
- BrightpearlRequestCapException(String) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlRequestCapException
-
- BrightpearlRequestCapException(String, Exception) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlRequestCapException
-
- BrightpearlServiceException - Exception in uk.co.visalia.brightpearl.apiclient.exception
-
This exception is thrown by the simple get, search and execute APIs in
BrightpearlApiClient
when the Brightpearl API returns a collection of error messages in the JSON response body.
- BrightpearlServiceException(int, List<ServiceError>) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlServiceException
-
- BrightpearlUnavailableException - Exception in uk.co.visalia.brightpearl.apiclient.exception
-
This exception is thrown when a 503 is received from Brightpearl but the message does not indicate the request cap
has been reached.
- BrightpearlUnavailableException(String) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlUnavailableException
-
- BrightpearlUnavailableException(String, Exception) - Constructor for exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlUnavailableException
-
- build() - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
Constructs the immutable
BrightpearlApiClient with configuration options provided, using defaults for
any not set.
- build() - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
- build() - Method in class uk.co.visalia.brightpearl.apiclient.http.RequestBuilder
-
Constructs the immutable
Request instance.
- build() - Method in class uk.co.visalia.brightpearl.apiclient.http.ResponseBuilder
-
Builds and returns an immutable
Response instance.
- build() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequestBuilder
-
- build() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponseBuilder
-
- build() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponseBuilder
-
- build() - Method in interface uk.co.visalia.brightpearl.apiclient.request.SearchRequestBuilder
-
Build an immutable request instance for execution.
- build() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestBuilder
-
Builds an immutable request instance from values provided to this builder.
- build() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Builds an immutable request set instance from values provided to this builder.
- build() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Constructs the immutable request instance for execution.
- build() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
Builds an immutable request instance from values provided to this builder.
- encode(String) - Static method in class uk.co.visalia.brightpearl.apiclient.util.Base64
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.account.Account
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.account.Datacenter
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.account.UserCredentials
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.auth.LegacyAuthorisation
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppIdentity
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppIdentity
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.common.IdSet
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.common.OptionsResponse
-
Considers two objects to be equal if they have the same class and all their fields are equal.
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.common.ServiceError
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.http.Request
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.http.Response
-
- equals(Object) - Method in class uk.co.visalia.brightpearl.apiclient.ServiceName
-
- equals(String, String) - Static method in class uk.co.visalia.brightpearl.apiclient.util.StringUtils
-
- EU1 - Static variable in class uk.co.visalia.brightpearl.apiclient.account.Datacenter
-
Datacenter EU1 (GMT, CET).
- EU2 - Static variable in class uk.co.visalia.brightpearl.apiclient.account.Datacenter
-
Datacenter EU2 (for accounts where admin domain is https://secure2.thisispearl.com).
- execute(ServiceWriteRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
- execute(ServiceWriteRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
Make a POST, PUT or DELETE call to the API.
- execute(MultiRequestBuilder) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
- execute(MultiRequest) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
Executes a multi message request.
- execute(AppAuthorisation, MultiRequestBuilder) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
- execute(AppAuthorisation, MultiRequest) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
Executes a multi message request.
- execute(AppAuthorisation, ServiceWriteRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
- execute(AppAuthorisation, ServiceWriteRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
Make a POST, PUT or DELETE call to the API.
- execute(ServiceWriteRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a write (PUT, POST, DELETE) request and returns the parsed response if the request was successful.
- execute(ServiceWriteRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a write (PUT, POST, DELETE) request and returns the parsed response if the request was successful.
- execute(MultiRequestBuilder) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a multimessage and returns the parsed responses and error messages.
- execute(MultiRequest) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a multimessage and returns the parsed responses and error messages.
- execute(Request) - Method in interface uk.co.visalia.brightpearl.apiclient.http.Client
-
Executes a request and returns the response.
- execute(Request) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4Client
-
Executes a request and returns the response.
- ExpiredAuthTokenStrategy - Enum in uk.co.visalia.brightpearl.apiclient.config
-
A setting for the
BrightpearlLegacyApiSession, this determines whether the session
should attempt to reauthenticate with configured credentials when a 401 Unauthorized response is received from the
Brightpearl API, which indicates the auth token has expired.
- get(ServiceReadRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
- get(ServiceReadRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
Make a GET or OPTIONS call to the API, and extract the expected response entity from the JSON returned.
- get(AppAuthorisation, ServiceReadRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
- get(AppAuthorisation, ServiceReadRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
Make a GET or OPTIONS call to the API, and extract the expected response entity from the JSON returned.
- get(ServiceReadRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a GET or OPTIONs request and returns the parsed response if the request was successful.
- get(ServiceReadRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a GET or OPTIONs request and returns the parsed response if the request was successful.
- getAccount() - Method in interface uk.co.visalia.brightpearl.apiclient.auth.AppAuthorisation
-
Returns the Brightpearl customer's account.
- getAccount() - Method in class uk.co.visalia.brightpearl.apiclient.auth.LegacyAuthorisation
-
- getAccount() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
- getAccount() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppIdentity
-
- getAccount() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
- getAccountCode() - Method in class uk.co.visalia.brightpearl.apiclient.account.Account
-
- getAccountToken() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
- getAccountToken() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
- getApiAccountCredentials() - Method in class uk.co.visalia.brightpearl.apiclient.client.UserCredentialsWrapper
-
- getAppIdentity() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
- getAppIdentity() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
- getAppReference() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppIdentity
-
- getAppReference() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppIdentity
-
- getBody() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageItem
-
- getBody() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageResponseItem
-
- getBody() - Method in class uk.co.visalia.brightpearl.apiclient.http.Request
-
JSON request body for inclusion in PUT and POST requests.
- getBody() - Method in class uk.co.visalia.brightpearl.apiclient.http.Response
-
Returns the JSON response body.
- getClient(Account) - Method in interface uk.co.visalia.brightpearl.apiclient.http.ClientFactory
-
Get a client to be used for a given
Account.
- getClient(Account) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactory
-
Returns the same instance of
HttpClient4Client, backed by a
DefaultHttpClient instance using a
thread-safe pooled connection manager, in response to every request.
- getClientErrorCode() - Method in exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlHttpException
-
- getCode() - Method in class uk.co.visalia.brightpearl.apiclient.common.ServiceError
-
Returns the error code identifying the error.
- getColumns() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchMetaData
-
Details of all the columns available from a search resource.
- getColumns() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResultsMetaData
-
The columns included in the response.
- getContent() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageResponseItemBody
-
- getDatacenter() - Method in class uk.co.visalia.brightpearl.apiclient.account.Account
-
Returns the datacenter
- getDeveloperReference() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppIdentity
-
- getDeveloperSecret() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppIdentity
-
- getDirection() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchSort
-
- getEmailAddress() - Method in class uk.co.visalia.brightpearl.apiclient.account.UserCredentials
-
Returns the email address.
- getEntity() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequest
-
The entity to be serialised as JSON and sent as the request body.
- getErrors() - Method in class uk.co.visalia.brightpearl.apiclient.client.parsing.JsonWrapper
-
- getErrors() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponse
-
Returns any errors included in the response body.
- getFilterable() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchColumn
-
- getFilterable() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchSort
-
- getFirstResult() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResultsMetaData
-
Returns the position of the first result on the current page.
- getGetUris() - Method in class uk.co.visalia.brightpearl.apiclient.common.OptionsResponse
-
Returns the set of URIs.
- getHeader(String) - Method in class uk.co.visalia.brightpearl.apiclient.http.Response
-
A utility method that looks up the value of a named header.
- getHeaders() - Method in interface uk.co.visalia.brightpearl.apiclient.auth.AppAuthorisation
-
Returns authentication headers required for requests made to the customer's account.
- getHeaders() - Method in class uk.co.visalia.brightpearl.apiclient.auth.LegacyAuthorisation
-
- getHeaders() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
- getHeaders() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
- getHeaders() - Method in class uk.co.visalia.brightpearl.apiclient.http.Request
-
HTTP headers for addition to the request.
- getHeaders() - Method in class uk.co.visalia.brightpearl.apiclient.http.Response
-
Returns the response headers.
- getHost() - Method in class uk.co.visalia.brightpearl.apiclient.account.Datacenter
-
Returns the datacenter host, including its scheme.
- getHttpMethod() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageItem
-
- getHttpResponse(AbstractServiceRequest) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
Executes a request and returns the response as an unparsed string of JSON together with the HTTP status
code and headers, exactly as returned by the
Client implementation.
- getHttpResponse(AppAuthorisation, AbstractServiceRequest) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
Executes a request and returns the response as an unparsed string of JSON together with the HTTP status
code and headers, exactly as returned by the
Client implementation.
- getIds() - Method in class uk.co.visalia.brightpearl.apiclient.common.IdSet
-
Returns the IDs as a
Set.
- getLabel() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageItem
-
- getLabel() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageResponseItem
-
- getLastResult() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResultsMetaData
-
Returns the position of the last result on the current page.
- getMessage() - Method in class uk.co.visalia.brightpearl.apiclient.common.ServiceError
-
A human readable description of the error, sometimes with additional details of its cause.
- getMessages() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessage
-
- getMetaData() - Method in class uk.co.visalia.brightpearl.apiclient.client.parsing.PartialSearchResponse
-
- getMetaData() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResults
-
- getMethod() - Method in class uk.co.visalia.brightpearl.apiclient.http.Request
-
The HTTP method.
- getMethod() - Method in class uk.co.visalia.brightpearl.apiclient.request.AbstractServiceRequest
-
The HTTP method of the request.
- getName() - Method in class uk.co.visalia.brightpearl.apiclient.account.Datacenter
-
Returns the name of the datacenter.
- getName() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchColumn
-
- getOnFail() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessage
-
- getOnFailOption() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequest
-
The on fail option (STOP or CONTINUE) set on the request, defining whether remaining requests should still be
executed when one fails.
- getParameters() - Method in class uk.co.visalia.brightpearl.apiclient.http.Request
-
Parameters for addition to the URL querystring.
- getParams() - Method in class uk.co.visalia.brightpearl.apiclient.request.AbstractServiceRequest
-
Querystring parameters to be added to the URL.
- getPassword() - Method in class uk.co.visalia.brightpearl.apiclient.account.UserCredentials
-
Returns the password.
- getPath() - Method in class uk.co.visalia.brightpearl.apiclient.request.AbstractServiceRequest
-
- getPath() - Method in class uk.co.visalia.brightpearl.apiclient.ServiceName
-
Returns the URI component for the service, for example "product-service".
- getProcessedMessages() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageResponse
-
- getProcessingMode() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessage
-
- getProcessingMode() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequest
-
The processing mode option (SEQUENTIAL or PARALLEL) set on the request, which defines whether requests should be
executed in serial or in parallel by the Brightpearl multimessage API.
- getReference() - Method in class uk.co.visalia.brightpearl.apiclient.client.parsing.JsonWrapper
-
- getReference() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResults
-
- getReferenceData() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchColumn
-
- getReportDataType() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchColumn
-
- getRequest(String) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequest
-
Returns an individual request by its unique ID.
- getRequests() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequest
-
The list of requests included in the multimessage batch.
- getRequests() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSet
-
- getRequired() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchColumn
-
- getResponse() - Method in class uk.co.visalia.brightpearl.apiclient.client.parsing.JsonWrapper
-
- getResponse() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponse
-
Returns the parsed entity parsed from the response element of the JSON, in the type expected for the request sent.
- getResponseType() - Method in class uk.co.visalia.brightpearl.apiclient.request.AbstractServiceRequest
-
A generic type token representing the expected type of the response element in the JSON response body.
- getResults() - Method in class uk.co.visalia.brightpearl.apiclient.client.parsing.PartialSearchResponse
-
- getResults() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResults
-
- getResultsAvailable() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResultsMetaData
-
Returns the total number of results that matched the filters supplied.
- getResultsReturned() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResultsMetaData
-
Returns the number of results included on the current page.
- getRetryAttempts() - Method in class uk.co.visalia.brightpearl.apiclient.config.RequestCapStrategy
-
For a retry strategy, returns the number of attempts that will be made to retry a request before aborting.
- getRetryWait() - Method in class uk.co.visalia.brightpearl.apiclient.config.RequestCapStrategy
-
For a retry strategy, returns the wait period between attempts.
- getRuid() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponse
-
Returns the unique ID of the request sent.
- getRuid() - Method in class uk.co.visalia.brightpearl.apiclient.request.AbstractServiceRequest
-
A unique identifier for the request.
- getService() - Method in class uk.co.visalia.brightpearl.apiclient.request.AbstractServiceRequest
-
Returns the name of the Brightpearl service that contains the resource to be called.
- getServiceErrors() - Method in exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlServiceException
-
Returns service errors from the response.
- getServiceResponse(ServiceWriteRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponse
-
Fetches the response for an individual request included in the multimessage, using the request's unique ID.
- getServiceResponse(String) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponse
-
Fetches the response for an individual request included in the multimessage, using the request's unique ID.
- getSize() - Method in class uk.co.visalia.brightpearl.apiclient.common.IdSet
-
Returns the number of IDs in the set.
- getSortable() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchColumn
-
- getSorting() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchMetaData
-
Describes the default sorting applied.
- getSorting() - Method in class uk.co.visalia.brightpearl.apiclient.search.SearchResultsMetaData
-
The sorting applied to the results.
- getStaffToken() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
- getStaffToken() - Method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
- getStatus() - Method in exception uk.co.visalia.brightpearl.apiclient.exception.BrightpearlServiceException
-
Returns the HTTP status of the response received.
- getStatus() - Method in class uk.co.visalia.brightpearl.apiclient.http.Response
-
Returns the HTTP status of the response.
- getStatus() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponse
-
Returns the status code for the multimessage container request.
- getStatus() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponse
-
Returns the HTTP status code received.
- getStatusCode() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageResponseItem
-
- getThis() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestBuilder
-
- getThis() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
- getThis() - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
- getTimestamp() - Method in class uk.co.visalia.brightpearl.apiclient.http.Response
-
Returns the timestamp this response instance was created.
- getUnprocessedMessages() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageResponse
-
- getUnprocessedRequestRuids() - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponse
-
Returns the list of unique request IDs that were not processed due to earlier failures.
- getUri() - Method in class uk.co.visalia.brightpearl.apiclient.client.multimessage.MultiMessageItem
-
- getUrl() - Method in class uk.co.visalia.brightpearl.apiclient.http.Request
-
The full URL of a Brightpearl API resource.
- newApiSession() - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Creates a new session using configured credentials.
- newApiSessionFactory() - Static method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Creates a new session factory instance.
- newDeleteRequest(ServiceName, String, Class<T>) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
Creates a new DELETE request builder configured with the URL to call and expected response type.
- newDeleteRequest(ServiceName, String, Type) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
Creates a new DELETE request builder configured with the URL to call and expected response type.
- newGetRequest(ServiceName, String, Class<T>) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestBuilder
-
Creates a new GET request builder configured with the URL to call and expected response type.
- newGetRequest(ServiceName, String, Type) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestBuilder
-
Creates a new GET request builder configured with the URL to call and expected response type.
- newMultiRequest() - Static method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequestBuilder
-
Returns a new builder instance used to create immutable
MultiRequest instances
- newMultiResponse() - Static method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponseBuilder
-
Returns a new builder instance used to create immutable
MultiResponse instances
- newOptionsRequest(ServiceName, String, Class<T>) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestBuilder
-
Creates a new OPTIONS request builder configured with the URL to call and expected response type.
- newOptionsRequest(ServiceName, String, Type) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestBuilder
-
Creates a new OPTIONS request builder configured with the URL to call and expected response type.
- newPostRequest(ServiceName, String, Object, Class<T>) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
Creates a new POST request builder configured with the URL to call and expected response type.
- newPostRequest(ServiceName, String, Object, Type) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
Creates a new POST request builder configured with the URL to call and expected response type.
- newPreauthenticatedApiSession(String) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Creates a new session pre-authenticated with a token generated independently.
- newPutRequest(ServiceName, String, Object, Class<T>) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
Creates a new PUT request builder configured with the URL to call and expected response type.
- newPutRequest(ServiceName, String, Object, Type) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequestBuilder
-
Creates a new PUT request builder configured with the URL to call and expected response type.
- newReadRequestSet(Class<T>) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Creates a new paged GET request builder configured with the URL to call and expected response type.
- newReadRequestSet() - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Creates a new paged GET request builder configured with the URL to call and expected response type.
- newRequest() - Static method in class uk.co.visalia.brightpearl.apiclient.http.RequestBuilder
-
Creates a new builder instance.
- newResponse() - Static method in class uk.co.visalia.brightpearl.apiclient.http.ResponseBuilder
-
Creates a new builder instance.
- newSearchRequest(ServiceName, String, Class<T>) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Creates a new search request builder configured with the URL to call and expected response type.
- newSearchRequest(ServiceName, String, Type) - Static method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Creates a new search request builder configured with the URL to call and expected response type.
- newServiceResponse() - Static method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponseBuilder
-
Returns a new builder instance used to create immutable
MultiResponse instances
- NoOpRateLimiter - Class in uk.co.visalia.brightpearl.apiclient.ratelimit
-
An implementation of
RateLimiter that allows requests to be sent to Brightpearl as fast as they are made by
the client.
- NoOpRateLimiter() - Constructor for class uk.co.visalia.brightpearl.apiclient.ratelimit.NoOpRateLimiter
-
- range(int, int) - Static method in class uk.co.visalia.brightpearl.apiclient.common.IdSet
-
Initialise an ID set with a single range of IDs.
- rateLimit(Account) - Method in class uk.co.visalia.brightpearl.apiclient.ratelimit.ConstantWaitRateLimiter
-
Called before a request is made, this sleeps for the minimum amount of time that must be left to ensure no more
than the maximum number of requests are made in the configured period.
- rateLimit(Account) - Method in class uk.co.visalia.brightpearl.apiclient.ratelimit.NoOpRateLimiter
-
This implementation does nothing.
- rateLimit(Account) - Method in interface uk.co.visalia.brightpearl.apiclient.ratelimit.RateLimiter
-
Called immediately before a request is made to the Brightpearl API for the given account.
- RateLimiter - Interface in uk.co.visalia.brightpearl.apiclient.ratelimit
-
An interface for rate limiters, which are called before any request is made to the Brightpearl API and notified when
a request cap error is received.
- read(JsonReader) - Method in class uk.co.visalia.brightpearl.apiclient.client.adaptors.CalendarAdaptor
-
- read(JsonReader) - Method in class uk.co.visalia.brightpearl.apiclient.client.adaptors.DateTimeAdaptor
-
- ReferenceField - Annotation Type in uk.co.visalia.brightpearl.apiclient.request
-
An annotation for search result domain object fields where the field is populated from a reference data map included
in the search result.
- ReferenceKey - Annotation Type in uk.co.visalia.brightpearl.apiclient.request
-
An annotation for search result domain object fields where the field is a key to one or more reference data maps that
provide values for other fields on the same domain object.
- Request - Class in uk.co.visalia.brightpearl.apiclient.http
-
Contains the basic details of an HTTP request to be executed by a
Client in a generic form that can be supported
by any implementation.
- RequestBuilder - Class in uk.co.visalia.brightpearl.apiclient.http
-
A builder used to create immutable
Request instances.
- requestCapExceeded(Account) - Method in class uk.co.visalia.brightpearl.apiclient.ratelimit.ConstantWaitRateLimiter
-
This implementation does nothing.
- requestCapExceeded(Account) - Method in class uk.co.visalia.brightpearl.apiclient.ratelimit.NoOpRateLimiter
-
This implementation does nothing.
- requestCapExceeded(Account) - Method in interface uk.co.visalia.brightpearl.apiclient.ratelimit.RateLimiter
-
Called when a request to an account has been rejected due to request throttling.
- RequestCapStrategy - Class in uk.co.visalia.brightpearl.apiclient.config
-
Defines the strategy
BrightpearlApiClient should use when a request cap error is
received from the Brightpearl API, in terms on the number of retries and wait between them.
- requestCompleted(Account, int, long) - Method in class uk.co.visalia.brightpearl.apiclient.ratelimit.ConstantWaitRateLimiter
-
This implementation does nothing.
- requestCompleted(Account, int, long) - Method in class uk.co.visalia.brightpearl.apiclient.ratelimit.NoOpRateLimiter
-
This implementation does nothing.
- requestCompleted(Account, int, long) - Method in interface uk.co.visalia.brightpearl.apiclient.ratelimit.RateLimiter
-
Called after every request is made to the Brightpearl API, with values from the brightpearl-requests-remaining
and brightpearl-next-throttle-period headers.
- Response - Class in uk.co.visalia.brightpearl.apiclient.http
-
Contains the basic details of an HTTP response received from the Brightpearl API.
- ResponseBuilder - Class in uk.co.visalia.brightpearl.apiclient.http
-
A builder used to create immutable
Response instances.
- RETRY - Static variable in class uk.co.visalia.brightpearl.apiclient.config.RequestCapStrategy
-
Default retry configuration: Make one attempt every 15 seconds and fail if 5 successive retries are blocked by the request cap.
- retry(int, long) - Static method in class uk.co.visalia.brightpearl.apiclient.config.RequestCapStrategy
-
Constructs a retry strategy with a custom number of retry attempts and wait period in ms.
- search(SearchRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
- search(ServiceSearchRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient.ApiSession
-
Makes a GET call to a search API, and deserialises the response into a
SearchResults object that contains
meta information, reference data and a list of results.
- search(AppAuthorisation, SearchRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
- search(AppAuthorisation, ServiceSearchRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClient
-
Makes a GET call to a search API, and deserialises the response into a
SearchResults object that contains
meta information, reference data and a list of results.
- search(SearchRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a search request and returns the parsed response if the request was successful.
- search(ServiceSearchRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSession
-
Executes a search request and returns the parsed response if the request was successful.
- SearchColumn - Class in uk.co.visalia.brightpearl.apiclient.search
-
Details of a column available for retrieving, filtering or sorting in a search API.
- SearchColumn() - Constructor for class uk.co.visalia.brightpearl.apiclient.search.SearchColumn
-
- SearchMetaData - Class in uk.co.visalia.brightpearl.apiclient.search
-
Contains details of the columns available from a search resource, and the default sorting applied.
- SearchMetaData() - Constructor for class uk.co.visalia.brightpearl.apiclient.search.SearchMetaData
-
- SearchRequestBuilder<T> - Interface in uk.co.visalia.brightpearl.apiclient.request
-
- SearchResults<T> - Class in uk.co.visalia.brightpearl.apiclient.search
-
Contains the full details of a search result.
- SearchResults(SearchResultsMetaData, List<T>, Map<String, Map<String, Object>>) - Constructor for class uk.co.visalia.brightpearl.apiclient.search.SearchResults
-
- SearchResultsMetaData - Class in uk.co.visalia.brightpearl.apiclient.search
-
Contains the metadata of a response from a search resource, describing which search columns were returned, the sort
order applied, and the number of available results.
- SearchResultsMetaData() - Constructor for class uk.co.visalia.brightpearl.apiclient.search.SearchResultsMetaData
-
- SearchSort - Class in uk.co.visalia.brightpearl.apiclient.search
-
Describes sorting that was applied to a search result.
- SearchSort() - Constructor for class uk.co.visalia.brightpearl.apiclient.search.SearchSort
-
- ServiceError - Class in uk.co.visalia.brightpearl.apiclient.common
-
Details of a single error message returned in the errors element of a JSON response.
- ServiceError(String, String) - Constructor for class uk.co.visalia.brightpearl.apiclient.common.ServiceError
-
- ServiceName - Class in uk.co.visalia.brightpearl.apiclient
-
An extendable enum containing the known Brightpearl services and allowing a custom service name to be used.
- ServiceName(String) - Constructor for class uk.co.visalia.brightpearl.apiclient.ServiceName
-
Constructs a custom service name instance, using the path, for example "product-service".
- ServiceReadRequest<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
Represents a read request to be made to the Brightpearl API.
- ServiceReadRequestBuilder<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
- ServiceReadRequestSet<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
- ServiceReadRequestSetBuilder<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
- ServiceReadRequestSetBuilder() - Constructor for class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
- ServiceResponse<T> - Class in uk.co.visalia.brightpearl.apiclient.multimessage
-
Contains the response for an individual request executed in a multimessage batch.
- ServiceResponseBuilder<T> - Class in uk.co.visalia.brightpearl.apiclient.multimessage
-
- ServiceSearchRequest<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
- ServiceSearchRequestBuilder<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
A builder used to construct generic
ServiceSearchRequest instances that may be used against any search resource.
- ServiceWriteRequest<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
Represents a write request to be made to the Brightpearl API.
- ServiceWriteRequestBuilder<T> - Class in uk.co.visalia.brightpearl.apiclient.request
-
- setAccount(Account) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Set the target Brightpearl customer account for sessions created by this factory.
- setAllowRedirects(boolean) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set whether redirects should be followed.
- setBrightpearlApiClient(BrightpearlApiClient) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
- setClientFactory(ClientFactory) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
- setConnectionManagerTimeoutMs(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Sets the connection manager timeout in milliseconds.
- setConnectionTimeoutMs(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set the time in milliseconds to wait for a connection to be established before aborting the request.
- setExpiredAuthTokenStrategy(ExpiredAuthTokenStrategy) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Set the strategy to use when credentials authentication is configured and the current auth token expires.
- setGson(Gson) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
Provide a custom GSON instance for serialising JSON request bodies and deserialising JSON responses.
- setMaxConnections(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set the maximum total connections allowed across all routes.
- setMaxConnectionsPerRoute(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set the maximum connections allowed per route.
- setRateLimiter(RateLimiter) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
Set the
RateLimiter implementation to be used for monitoring and limiting request throughput.
- setSocketTimeoutMs(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Maximum time of inactivity to allow between two consecutive data packets from the server before aborting the
request.
- setUserCredentials(UserCredentials) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Set the credentials of an API-enabled user account associated with the customer account.
- SORT_PARAM - Static variable in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
- SortDirection - Enum in uk.co.visalia.brightpearl.apiclient.request
-
Sort directions accepted by search resources.
- split(int) - Method in class uk.co.visalia.brightpearl.apiclient.common.IdSet
-
Splits this IdSet into batches of the given size.
- split(MultiRequest) - Static method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiMessageUtils
-
Splits a
MultiRequest into as many requests as necessary to give no more than ten request, whilst also
avoiding batches of one request (except when the supplied request contains only one request).
- staff(Account, String) - Static method in class uk.co.visalia.brightpearl.apiclient.auth.LegacyAuthorisation
-
Create legacy authentication details using an account and staff token.
- staff(PrivateAppIdentity, String) - Static method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
Create account authorisation details for a staff authorised API call for a private app.
- staff(PublicAppIdentity, Account, String) - Static method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
Create account authorisation details for a staff authorised API call.
- STAFF_TOKEN_HEADER - Static variable in interface uk.co.visalia.brightpearl.apiclient.auth.AppAuthorisation
-
- StringUtils - Class in uk.co.visalia.brightpearl.apiclient.util
-
A set of functions used internally, mostly replicated from commons-lang to avoid unwanted dependencies.
- system(PrivateAppIdentity, String) - Static method in class uk.co.visalia.brightpearl.apiclient.auth.PrivateAppAuthorisation
-
Create account authorisation details for a private (own account) system-to-system call using the account token
generated for a private app.
- system(PublicAppIdentity, Account, String) - Static method in class uk.co.visalia.brightpearl.apiclient.auth.PublicAppAuthorisation
-
Create account authorisation details for a system-to-system call using an account token.
- valueOf(String) - Static method in enum uk.co.visalia.brightpearl.apiclient.config.ExpiredAuthTokenStrategy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum uk.co.visalia.brightpearl.apiclient.exception.ClientErrorCode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum uk.co.visalia.brightpearl.apiclient.http.Method
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum uk.co.visalia.brightpearl.apiclient.multimessage.OnFailOption
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum uk.co.visalia.brightpearl.apiclient.multimessage.ProcessingMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum uk.co.visalia.brightpearl.apiclient.request.SortDirection
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum uk.co.visalia.brightpearl.apiclient.config.ExpiredAuthTokenStrategy
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum uk.co.visalia.brightpearl.apiclient.exception.ClientErrorCode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum uk.co.visalia.brightpearl.apiclient.http.Method
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum uk.co.visalia.brightpearl.apiclient.multimessage.OnFailOption
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum uk.co.visalia.brightpearl.apiclient.multimessage.ProcessingMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum uk.co.visalia.brightpearl.apiclient.request.SortDirection
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- WAREHOUSE - Static variable in class uk.co.visalia.brightpearl.apiclient.ServiceName
-
- withAccount(Account) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Set the target Brightpearl customer account for sessions created by this factory.
- withAddedColumn(String) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Adds a column to be included in search results.
- withAddedFilter(String, String) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Add an additional column value filter to be applied to the search.
- withAddedFilters(Map<String, String>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Add additional column value filters to be applied to the search, preserving previous filters set on this builder.
- withAddedParam(String, String) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Add an additional unencoded querystring parameter to be added to every request, preserving the existing set but
overwriting any param with the same name.
- withAddedParams(Map<String, String>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Add additional unencoded querystring parameters to be added to every request, preserving the existing set but
overwriting any param with the same names.
- withAddedRequest(ServiceWriteRequest) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequestBuilder
-
Add a request to the multimessage batch.
- withAddedRequest(ServiceWriteRequestBuilder) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequestBuilder
-
Add a request to the multimessage batch.
- withAddedRequest(ServiceReadRequestBuilder<T>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Adds a request to the batch.
- withAddedRequest(ServiceReadRequest<T>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Adds a request to the batch.
- withAddedRequests(Set<ServiceReadRequest<T>>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Adds a set of requests to the batch.
- withAddedSort(String, SortDirection) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Add an additional column sort to be applied to the search.
- withAllowRedirects(boolean) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set whether redirects should be followed.
- withBody(String) - Method in class uk.co.visalia.brightpearl.apiclient.http.RequestBuilder
-
Add a JSON body to a PUT or POST request.
- withBody(String) - Method in class uk.co.visalia.brightpearl.apiclient.http.ResponseBuilder
-
Set the JSON body received.
- withBrightpearlApiClient(BrightpearlApiClient) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
- withClientFactory(ClientFactory) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
- withColumns(String...) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Sets the columns to be included in search results, replacing any previously set.
- withColumns(List<String>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Sets the columns to be included in search results, replacing any previously set.
- withConnectionManagerTimeoutMs(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Sets the connection manager timeout in milliseconds.
- withConnectionTimeoutMs(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set the time in milliseconds to wait for a connection to be established before aborting the request.
- withException(RuntimeException) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponseBuilder
-
Set the exception thrown based on service errors in the response or an error parsing the JSON.
- withExpiredAuthTokenStrategy(ExpiredAuthTokenStrategy) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Set the strategy to use when credentials authentication is configured and the current auth token expires.
- withFilters(Map<String, String>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Set the column value filters to be applied to the search, replacing any previous filters set on this builder.
- withFirstResult(Integer) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Sets the first result to return, allowing paging through large result sets.
- withGson(Gson) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
Provide a custom GSON instance for serialising JSON request bodies and deserialising JSON responses.
- withHeaders(Map<String, String>) - Method in class uk.co.visalia.brightpearl.apiclient.http.RequestBuilder
-
Sets the map of unencoded headers to be added to the request.
- withHeaders(Map<String, String>) - Method in class uk.co.visalia.brightpearl.apiclient.http.ResponseBuilder
-
Set the response headers received.
- withMaxConnections(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set the maximum total connections allowed across all routes.
- withMaxConnectionsPerRoute(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Set the maximum connections allowed per route.
- withMethod(Method) - Method in class uk.co.visalia.brightpearl.apiclient.http.RequestBuilder
-
Sets the HTTP method of the request.
- withOnFailOption(OnFailOption) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequestBuilder
-
Set the on fail option (STOP or CONTINUE) for the request, defining whether remaining requests should still be
executed when one fails.
- withPage(Integer, Integer) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Set paging parameters in one call.
- withPageSize(Integer) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Sets the number of results to return per page, allowing paging through large result sets.
- withParameters(Map<String, String>) - Method in class uk.co.visalia.brightpearl.apiclient.http.RequestBuilder
-
Sets the map of unencoded querystring parameters to be added to the URL.
- withParams(Map<String, String>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceReadRequestSetBuilder
-
Add querystring parameters to every request, replacing any previously set.
- withProcessingMode(ProcessingMode) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequestBuilder
-
Set the processing mode option (SEQUENTIAL or PARALLEL) for the request, which defines whether requests should be
executed in serial or in parallel by the Brightpearl multimessage API.
- withRateLimiter(RateLimiter) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlApiClientFactory
-
Set the
RateLimiter implementation to be used for monitoring and limiting request throughput.
- withRequests(List<ServiceWriteRequest>) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiRequestBuilder
-
Set the requests to be added to the multimessage batch, replacing any previously set.
- withResponse(T) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponseBuilder
-
Sets the entity received in the response element of the JSON response body.
- withRuid(String) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponseBuilder
-
Set the unique ID of the request this is a response to.
- withServiceResponseMap(Map<String, ServiceResponse>) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponseBuilder
-
Set the results of individual executed requests as a map of request unique ID to response object.
- withSocketTimeoutMs(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.httpclient4.HttpClient4ClientFactoryBuilder
-
Maximum time of inactivity to allow between two consecutive data packets from the server before aborting the
request.
- withSorts(Map<String, SortDirection>) - Method in class uk.co.visalia.brightpearl.apiclient.request.ServiceSearchRequestBuilder
-
Set the sort columns and directions, replacing any previously added.
- withStatus(int) - Method in class uk.co.visalia.brightpearl.apiclient.http.ResponseBuilder
-
Set the HTTP response status.
- withStatus(int) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponseBuilder
-
Set the HTTP response code for the multimessage request.
- withStatus(int) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.ServiceResponseBuilder
-
Set the HTTP status code returned for this individual response.
- withUnprocessedRequestIds(List<String>) - Method in class uk.co.visalia.brightpearl.apiclient.multimessage.MultiResponseBuilder
-
Set the list of unique request IDs that were not executed due to a failured.
- withUrl(String) - Method in class uk.co.visalia.brightpearl.apiclient.http.RequestBuilder
-
Sets the full URL of the resource.
- withUserCredentials(UserCredentials) - Method in class uk.co.visalia.brightpearl.apiclient.BrightpearlLegacyApiSessionFactory
-
Set the credentials of an API-enabled user account associated with the customer account.
- write(JsonWriter, Calendar) - Method in class uk.co.visalia.brightpearl.apiclient.client.adaptors.CalendarAdaptor
-
- write(JsonWriter, DateTime) - Method in class uk.co.visalia.brightpearl.apiclient.client.adaptors.DateTimeAdaptor
-