java.lang.Object
io.github.evisentin.wordpress.rest.client.domain.WpBaseRestClient
io.github.evisentin.wordpress.rest.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
    • pageRevisions

      public PageRevisionAPIs pageRevisions()
      Description copied from interface: WpRestClient
      Returns the page revisions API operations.
      Returns:
      page revision API operations
    • pages

      public PageAPIs pages()
      Description copied from interface: WpRestClient
      Returns the page API operations.
      Returns:
      page API operations
    • postRevisions

      public PostRevisionAPIs postRevisions()
      Description copied from interface: WpRestClient
      Returns the post revisions API operations.
      Returns:
      post revision 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
    • search

      public SearchAPIs search()
      Description copied from interface: WpRestClient
      Returns the search API operations.
      Returns:
      search API operations
    • tags

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

      public TaxonomyAPIs taxonomies()
      Description copied from interface: WpRestClient
      Returns the taxonomy API operations.
      Returns:
      taxonomy API operations