Package dev.enola.cas
Class IPFSGatewayResource
java.lang.Object
dev.enola.common.io.resource.BaseResource
dev.enola.cas.IPFSGatewayResource
- All Implemented Interfaces:
AbstractResource,ReadableResource
IPFS Resource, via an IPFS HTTP Gateway.
This is read-only, as one cannot write to such a gateway.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class dev.enola.common.io.resource.BaseResource
mediaType, uriFields inherited from interface dev.enola.common.io.resource.ReadableResource
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionIPFSGatewayResource(URI uri, MediaType mediaType, ResourceProvider httpResourceProvider, String gateway) IPFSGatewayResource(URI uri, ResourceProvider httpResourceProvider, String gateway) -
Method Summary
Methods inherited from class dev.enola.common.io.resource.BaseResource
mediaType, toString, uriMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.enola.common.io.resource.AbstractResource
mediaType, uriMethods inherited from interface dev.enola.common.io.resource.ReadableResource
changeToken, charSource, isDifferent, isDifferent
-
Constructor Details
-
IPFSGatewayResource
-
IPFSGatewayResource
public IPFSGatewayResource(URI uri, MediaType mediaType, ResourceProvider httpResourceProvider, String gateway)
-
-
Method Details
-
byteSource
- Specified by:
byteSourcein interfaceReadableResource
-