Class TransportClient

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String HTTPS  
    • Constructor Summary

      Constructors 
      Constructor Description
      TransportClient()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<TransportClientResponse> get​(java.lang.String requestPath)  
      abstract java.util.concurrent.CompletableFuture<TransportClientResponse> get​(java.lang.String requestPath, java.util.Map<java.lang.String,​java.lang.String> headers)  
      TransportClient getCopyIfNotUsableInCallback()
      If the internal client could not be used by its callback function, implementation of this function should return a new copy.
      java.util.concurrent.CompletableFuture<TransportClientResponse> post​(java.lang.String requestPath, byte[] requestBody)  
      abstract java.util.concurrent.CompletableFuture<TransportClientResponse> post​(java.lang.String requestPath, java.util.Map<java.lang.String,​java.lang.String> headers, byte[] requestBody)  
      abstract void streamPost​(java.lang.String requestPath, java.util.Map<java.lang.String,​java.lang.String> headers, byte[] requestBody, TransportClientStreamingCallback callback, int keyCount)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • Constructor Detail

      • TransportClient

        public TransportClient()
    • Method Detail

      • get

        public java.util.concurrent.CompletableFuture<TransportClientResponse> get​(java.lang.String requestPath)
      • post

        public java.util.concurrent.CompletableFuture<TransportClientResponse> post​(java.lang.String requestPath,
                                                                                    byte[] requestBody)
      • get

        public abstract java.util.concurrent.CompletableFuture<TransportClientResponse> get​(java.lang.String requestPath,
                                                                                            java.util.Map<java.lang.String,​java.lang.String> headers)
      • post

        public abstract java.util.concurrent.CompletableFuture<TransportClientResponse> post​(java.lang.String requestPath,
                                                                                             java.util.Map<java.lang.String,​java.lang.String> headers,
                                                                                             byte[] requestBody)
      • streamPost

        public abstract void streamPost​(java.lang.String requestPath,
                                        java.util.Map<java.lang.String,​java.lang.String> headers,
                                        byte[] requestBody,
                                        TransportClientStreamingCallback callback,
                                        int keyCount)
      • getCopyIfNotUsableInCallback

        public TransportClient getCopyIfNotUsableInCallback()
        If the internal client could not be used by its callback function, implementation of this function should return a new copy. The default implementation is to return itself.
        Returns: