Class BaseResource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.pulsar.client.api.Authentication auth  
      protected long readTimeoutMs  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseResource​(org.apache.pulsar.client.api.Authentication auth, long readTimeoutMs)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> asyncDeleteRequest​(javax.ws.rs.client.WebTarget target)  
      <T> void asyncDeleteRequest​(javax.ws.rs.client.WebTarget target, javax.ws.rs.client.InvocationCallback<T> callback)  
      <T> void asyncGetRequest​(javax.ws.rs.client.WebTarget target, javax.ws.rs.client.InvocationCallback<T> callback)  
      <T> java.util.concurrent.CompletableFuture<java.lang.Void> asyncPostRequest​(javax.ws.rs.client.WebTarget target, javax.ws.rs.client.Entity<T> entity)  
      <T> java.util.concurrent.CompletableFuture<java.lang.Void> asyncPutRequest​(javax.ws.rs.client.WebTarget target, javax.ws.rs.client.Entity<T> entity)  
      org.apache.pulsar.client.admin.PulsarAdminException getApiException​(java.lang.Throwable e)  
      org.apache.pulsar.client.admin.PulsarAdminException getApiException​(javax.ws.rs.core.Response response)  
      static java.lang.String getReasonFromServer​(javax.ws.rs.WebApplicationException e)  
      javax.ws.rs.client.Invocation.Builder request​(javax.ws.rs.client.WebTarget target)  
      java.util.concurrent.CompletableFuture<javax.ws.rs.client.Invocation.Builder> requestAsync​(javax.ws.rs.client.WebTarget target)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • auth

        protected final org.apache.pulsar.client.api.Authentication auth
      • readTimeoutMs

        protected final long readTimeoutMs
    • Constructor Detail

      • BaseResource

        protected BaseResource​(org.apache.pulsar.client.api.Authentication auth,
                               long readTimeoutMs)
    • Method Detail

      • request

        public javax.ws.rs.client.Invocation.Builder request​(javax.ws.rs.client.WebTarget target)
                                                      throws org.apache.pulsar.client.admin.PulsarAdminException
        Throws:
        org.apache.pulsar.client.admin.PulsarAdminException
      • requestAsync

        public java.util.concurrent.CompletableFuture<javax.ws.rs.client.Invocation.Builder> requestAsync​(javax.ws.rs.client.WebTarget target)
      • asyncPutRequest

        public <T> java.util.concurrent.CompletableFuture<java.lang.Void> asyncPutRequest​(javax.ws.rs.client.WebTarget target,
                                                                                          javax.ws.rs.client.Entity<T> entity)
      • asyncPostRequest

        public <T> java.util.concurrent.CompletableFuture<java.lang.Void> asyncPostRequest​(javax.ws.rs.client.WebTarget target,
                                                                                           javax.ws.rs.client.Entity<T> entity)
      • asyncGetRequest

        public <T> void asyncGetRequest​(javax.ws.rs.client.WebTarget target,
                                        javax.ws.rs.client.InvocationCallback<T> callback)
      • asyncDeleteRequest

        public java.util.concurrent.CompletableFuture<java.lang.Void> asyncDeleteRequest​(javax.ws.rs.client.WebTarget target)
      • asyncDeleteRequest

        public <T> void asyncDeleteRequest​(javax.ws.rs.client.WebTarget target,
                                           javax.ws.rs.client.InvocationCallback<T> callback)
      • getApiException

        public org.apache.pulsar.client.admin.PulsarAdminException getApiException​(java.lang.Throwable e)
      • getApiException

        public org.apache.pulsar.client.admin.PulsarAdminException getApiException​(javax.ws.rs.core.Response response)
      • getReasonFromServer

        public static java.lang.String getReasonFromServer​(javax.ws.rs.WebApplicationException e)