Class DownloadServiceGrpc.DownloadServiceImplBase

java.lang.Object
com.soulfiremc.grpc.generated.DownloadServiceGrpc.DownloadServiceImplBase
All Implemented Interfaces:
DownloadServiceGrpc.AsyncService, io.grpc.BindableService
Direct Known Subclasses:
DownloadServiceImpl
Enclosing class:
DownloadServiceGrpc

public abstract static class DownloadServiceGrpc.DownloadServiceImplBase extends Object implements io.grpc.BindableService, DownloadServiceGrpc.AsyncService
Base class for the server implementation of the service DownloadService.
Service for downloading content from remote URLs through the SoulFire server.
This service acts as a proxy, allowing clients to fetch remote resources using
the server's network connection and optionally through a configured proxy.
Use cases include:
- Downloading resources that may be blocked from the client's network
- Fetching content through a specific proxy for anonymity or geo-unlocking
- Centralizing external API calls through the server
The service uses a Reactor Netty HTTP client with:
- 5-second response timeout
- Automatic compression support
- Default Accept, Accept-Language, and User-Agent headers
Authorization:
- Requires a valid JWT token
- Caller must have DOWNLOAD_URL permission for the specified instance
Error handling:
- Returns gRPC INTERNAL status on network errors, timeouts, or server failures
- The error description contains details about the failure
  • Constructor Details

    • DownloadServiceImplBase

      public DownloadServiceImplBase()
  • Method Details

    • bindService

      public final io.grpc.ServerServiceDefinition bindService()
      Specified by:
      bindService in interface io.grpc.BindableService