Class DownloadServiceImpl
java.lang.Object
com.soulfiremc.grpc.generated.DownloadServiceGrpc.DownloadServiceImplBase
com.soulfiremc.server.grpc.DownloadServiceImpl
- All Implemented Interfaces:
DownloadServiceGrpc.AsyncService, io.grpc.BindableService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SFProxyconvertProxy(BooleanSupplier hasProxy, Supplier<ProxyProto> proxy) voiddownload(DownloadRequest request, io.grpc.stub.StreamObserver<DownloadResponse> responseObserver) Downloads content from the specified URI and returns the response.Methods inherited from class DownloadServiceGrpc.DownloadServiceImplBase
bindService
-
Constructor Details
-
DownloadServiceImpl
public DownloadServiceImpl()
-
-
Method Details
-
convertProxy
-
download
public void download(DownloadRequest request, io.grpc.stub.StreamObserver<DownloadResponse> responseObserver) Description copied from interface:DownloadServiceGrpc.AsyncServiceDownloads 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
-