Interface WordpressClient

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteMedia​(java.lang.String id)  
      void deletePost​(java.lang.String id)  
      java.util.List<Media> getAllMedia​(java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)  
      java.util.List<Post> getAllPosts​(java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)  
      Media getMedia​(java.lang.String id)  
      PagedResponse<Media> getMedias​(java.lang.Integer page, java.lang.Integer perPage, java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)  
      Post getPost​(java.lang.String id)  
      PagedResponse<Post> getPosts​(java.lang.Integer page, java.lang.Integer perPage, java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)  
      Post savePost​(Post post)  
      Media updateMedia​(Media media)  
      Media uploadMedia​(java.io.File content, org.apache.hc.core5.http.ContentType contentType, java.lang.String filename)  
    • Method Detail

      • getAllPosts

        java.util.List<Post> getAllPosts​(java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)
                                  throws java.io.IOException,
                                         java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • getPosts

        PagedResponse<Post> getPosts​(java.lang.Integer page,
                                     java.lang.Integer perPage,
                                     java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)
                              throws java.io.IOException,
                                     java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • getPost

        Post getPost​(java.lang.String id)
              throws java.io.IOException,
                     java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • savePost

        Post savePost​(Post post)
               throws java.io.IOException,
                      java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • deletePost

        void deletePost​(java.lang.String id)
                 throws java.io.IOException,
                        java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • getAllMedia

        java.util.List<Media> getAllMedia​(java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)
                                   throws java.io.IOException,
                                          java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • getMedias

        PagedResponse<Media> getMedias​(java.lang.Integer page,
                                       java.lang.Integer perPage,
                                       java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> queryParams)
                                throws java.io.IOException,
                                       java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • getMedia

        Media getMedia​(java.lang.String id)
                throws java.io.IOException,
                       java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • uploadMedia

        Media uploadMedia​(java.io.File content,
                          org.apache.hc.core5.http.ContentType contentType,
                          java.lang.String filename)
                   throws java.io.IOException,
                          java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • updateMedia

        Media updateMedia​(Media media)
                   throws java.io.IOException,
                          java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • deleteMedia

        void deleteMedia​(java.lang.String id)
                  throws java.io.IOException,
                         java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.net.URISyntaxException