Class DownloadServiceGrpc
java.lang.Object
com.soulfiremc.grpc.generated.DownloadServiceGrpc
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceService for downloading content from remote URLs through the SoulFire server.static final classA stub to allow clients to do limited synchronous rpc calls to service DownloadService.static final classA stub to allow clients to do synchronous rpc calls to service DownloadService.static final classA stub to allow clients to do ListenableFuture-style rpc calls to service DownloadService.static classBase class for the server implementation of the service DownloadService.static final classA stub to allow clients to do asynchronous rpc calls to service DownloadService. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinitionstatic io.grpc.MethodDescriptor<DownloadRequest, DownloadResponse> static io.grpc.ServiceDescriptornewBlockingStub(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the servicenewFutureStub(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getDownloadMethod
-
newStub
Creates a new async stub that supports all call types for the service -
newBlockingV2Stub
public static DownloadServiceGrpc.DownloadServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the service -
newBlockingStub
public static DownloadServiceGrpc.DownloadServiceBlockingStub newBlockingStub(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(DownloadServiceGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-