commercetools Java SDK

commercetools Composable Commerce Java SDK.

Pages about the SDK

First steps

  1. Installation
    • Modules
    • Gradle
    • Maven
    • Troubleshooting
      • Spring Framework
  2. Getting Started
    • Instantiation
    • Performing requests
      • Example
    • Closing the client
  3. Supported Endpoints
  4. Configuration
    • ApiRoot and ProjectApiRoot
    • Custom URLs
    • Custom HTTP client
    • Error handling
      • Unwrap exceptions
      • Not found
  5. Authentication
    • Client credentials flow
    • Static token
    • Anonymous and RefreshToken flow
      • Standalone anonymous session flow
      • Password flow
    • Introspection
    • Token revocation
  6. Querying
    • Predicates
    • Get by id/key
    • Query all
    • Sorting
    • Pagination
    • Test cases
  7. Middlewares
    • ErrorMiddleware
    • OAuthMiddleware
    • PolicyMiddleware
    • ConcurrentModificationMiddleware
    • UserAgentMiddleware
    • AcceptGZipMiddleware
    • InternalLoggerMiddleware
  8. GraphQL
    • GraphQL module

Products and ProductTypes

  1. Product attributes
    • ProductType Creation
    • Product Creation
    • Reading Attributes
    • Update attribute values of a product
    • Create attributes for importing orders

Preparing for the worst

  1. Exception documentation
    • Errors
    • Custom HttpExceptionFactory
  2. Logging
    • Logger configuration
    • Log Information
      • Error
      • Info
      • Debug
      • Trace
    • Logger hierarchy
    • Usage of Mapped Diagnostic Context

Customization

  1. Serialization
    • Customization
    • Date and time attributes
    • Number attributes
    • Deserialize Attributes as JsonNode
  2. Client Tuning
    • Blocking execution
    • PolicyMiddleware
    • Configure the underlying http client
    • Limit concurrent requests
    • Timeouts

Other

  1. General concepts
    • ApiHttpClient
    • ApiRoot & ProjectApiRoot
    • ApiMethod
    • Models
  2. Data representation
    • Interfaces
      • Polymorphic types
    • Builder
      • Object property
      • Array property
      • Polymorphic types
    • Implementation
  3. Features
    • Embracing Java 8
    • Request builders
    • Good defaults for equals() and hashCode()
    • Client interfaces
    • Model factory methods
    • Middlewares
  4. Using
    • Models and Builders
    • Request DSL

Migration from SDK v1

  1. Overview
    • Compatibility JVM SDK (v1)
      • Creating a SphereClient with the v2 SDK
      • Using Requests from the JVM SDK (v1)
    • Model class mapping SDK v1 to v2

      Monitoring

      1. NewRelic
        Package
        Description