Package ch.kk7.confij.source.resource
Class URLResource.AnyURLResource
java.lang.Object
ch.kk7.confij.source.resource.URLResource.AnyURLResource
- All Implemented Interfaces:
ServiceLoaderPriority,ConfijAnyResource
- Enclosing class:
- URLResource
@AutoService(ConfijAnyResource.class) public static class URLResource.AnyURLResource extends java.lang.Object implements ConfijAnyResource, ServiceLoaderPriority
-
Field Summary
Fields inherited from interface ch.kk7.confij.common.ServiceLoaderPriority
DEFAULT_PRIORITY -
Constructor Summary
Constructors Constructor Description AnyURLResource() -
Method Summary
Modifier and Type Method Description intgetPriority()java.util.Optional<URLResource>maybeHandle(java.lang.String pathTemplate)Receive a "preview" on the URI to be processed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AnyURLResource
public AnyURLResource()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceServiceLoaderPriority
-
maybeHandle
Description copied from interface:ConfijAnyResourceReceive a "preview" on the URI to be processed. This resouce provider can choose to accept or reject processing it. This is most commonly decided based on the URI's scheme.- Specified by:
maybeHandlein interfaceConfijAnyResource- Parameters:
pathTemplate- an URI to be processed later.- Returns:
- a stream of strings if this resouce provider accepts processing this URI (but it can still fail), empty if the uri doesn't look like it could be processed
-