Class ClasspathProtocolHandler
java.lang.Object
com.thecsdev.common.resource.protocol.ClasspathProtocolHandler
- All Implemented Interfaces:
ProtocolHandler
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull CompletableFuture<ResourceResponse> handle(@NotNull ResourceRequest request) Handles the givenResourceRequestand returns aCompletableFuturethat will complete with aResourceResponse.final booleanDetermines if thisProtocolHandlercan handle the givenURI.
-
Field Details
-
INSTANCE
-
-
Method Details
-
matches
Description copied from interface:ProtocolHandlerDetermines if thisProtocolHandlercan handle the givenURI.- Specified by:
matchesin interfaceProtocolHandler- Parameters:
uri- The URI to check.- Returns:
trueif this handler can process the URI;falseotherwise.
-
handle
@NotNull public final @NotNull CompletableFuture<ResourceResponse> handle(@NotNull @NotNull ResourceRequest request) Description copied from interface:ProtocolHandlerHandles the givenResourceRequestand returns aCompletableFuturethat will complete with aResourceResponse.- Specified by:
handlein interfaceProtocolHandler- Parameters:
request- TheResourceRequestto handle.
-