Class ApacheWpRestClient

java.lang.Object
io.github.evisentin.wordpress.client.domain.WpBaseRestClient
io.github.evisentin.wordpress.client.adapter.apache.ApacheWpRestClient
All Implemented Interfaces:
WpRestClient

public class ApacheWpRestClient extends WpBaseRestClient
Apache HttpClient-based implementation of WpBaseRestClient.

This client provides a synchronous wrapper around the WordPress REST API using CloseableHttpClient as the underlying HTTP transport.

It supports CRUD operations and paginated queries for core WordPress resources such as posts, categories, and tags.

The client is configured with an authentication strategy and automatically registers internal interceptors for:

Optional SslConfiguration and TimeoutConfiguration can be provided to customize TLS behaviour, connection management, and request timeouts. Thread Safety

Instances of this class are thread-safe and intended to be reused.

See Also:
  • Method Details

    • categories

      public CategoryAPIs categories()
      Description copied from interface: WpRestClient
      Returns the category API operations.
      Returns:
      category API operations
    • comments

      public CommentAPIs comments()
      Description copied from interface: WpRestClient
      Returns the comment API operations.
      Returns:
      comment API operations
    • media

      public MediaAPIs media()
      Description copied from interface: WpRestClient
      Returns the media API operations.
      Returns:
      media API operations
    • postStatuses

      public PostStatusAPIs postStatuses()
      Description copied from interface: WpRestClient
      Returns the post status API operations.
      Returns:
      post status API operations
    • postTypes

      public PostTypeAPIs postTypes()
      Description copied from interface: WpRestClient
      Returns the post type API operations.
      Returns:
      post type API operations
    • posts

      public PostAPIs posts()
      Description copied from interface: WpRestClient
      Returns the post API operations.
      Returns:
      post API operations
    • tags

      public TagAPIs tags()
      Description copied from interface: WpRestClient
      Returns the tag API operations.
      Returns:
      tag API operations