Class DownloadServiceImpl

All Implemented Interfaces:
DownloadServiceGrpc.AsyncService, io.grpc.BindableService

public final class DownloadServiceImpl extends DownloadServiceGrpc.DownloadServiceImplBase
  • Constructor Details

    • DownloadServiceImpl

      public DownloadServiceImpl()
  • Method Details

    • convertProxy

      public static @Nullable SFProxy convertProxy(BooleanSupplier hasProxy, Supplier<ProxyProto> proxy)
    • download

      public void download(DownloadRequest request, io.grpc.stub.StreamObserver<DownloadResponse> responseObserver)
      Description copied from interface: DownloadServiceGrpc.AsyncService
      Downloads content from the specified URI and returns the response.
      Makes an HTTP GET request to the URI specified in the request, optionally
      routing through a proxy. Custom headers can be provided to customize the request.
      Parameters:
        request - Contains the target URI, instance ID for permissions, optional headers,
                  and optional proxy configuration
      Returns:
        The downloaded content as bytes, along with response headers and HTTP status code
      Errors:
        PERMISSION_DENIED - Caller lacks DOWNLOAD_URL permission for the instance
        INTERNAL - Network error, connection timeout, invalid URI, or other server error