Class URLResource.AnyURLResource

    • Constructor Detail

      • AnyURLResource

        public AnyURLResource()
    • Method Detail

      • maybeHandle

        public java.util.Optional<URLResource> maybeHandle​(java.lang.String pathTemplate)
        Description copied from interface: ConfijAnyResource
        Receive 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:
        maybeHandle in interface ConfijAnyResource
        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