Package dev.enola.core.resource
Class ResourceEnolaService
java.lang.Object
dev.enola.core.resource.ResourceEnolaService
- All Implemented Interfaces:
EnolaService,Provider<String,,com.google.protobuf.Any> ProviderFromIRI<com.google.protobuf.Any>,ProtoThingProvider
ResourceEnolaService implements
EnolaService by fetching bytes from a ResourceProvider and converting them into Things using an ResourceIntoProtoThingConverter, such as its default RdfResourceIntoProtoThingConverter.-
Constructor Summary
ConstructorsConstructorDescriptionResourceEnolaService(ResourceProvider rp, ResourceIntoProtoThingConverter resourceToThingConverter) -
Method Summary
Modifier and TypeMethodDescription@Nullable com.google.protobuf.AnyGet.@Nullable List<Thing.Builder>
-
Constructor Details
-
ResourceEnolaService
public ResourceEnolaService(ResourceProvider rp, ResourceIntoProtoThingConverter resourceToThingConverter)
-
-
Method Details
-
getThingsAsBuilderList
-
getThings
- Specified by:
getThingsin interfaceEnolaService- Throws:
EnolaException
-
get
Description copied from interface:ProviderGet.- Specified by:
getin interfaceProtoThingProvider- Specified by:
getin interfaceProvider<String,com.google.protobuf.Any> - Specified by:
getin interfaceProviderFromIRI<com.google.protobuf.Any>- Parameters:
iri- Key, never null- Returns:
- value, or null if there is no Value for the given key
-
getThing
- Specified by:
getThingin interfaceEnolaService- Throws:
EnolaException
-