Class VanillaDocumentMessageBodyReader
- java.lang.Object
-
- org.openprovenance.prov.service.narrative.VanillaDocumentMessageBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<org.openprovenance.prov.vanilla.Document>
@Provider @Consumes({"text/provenance-notation","application/json","application/ld+json"}) public class VanillaDocumentMessageBodyReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<org.openprovenance.prov.vanilla.Document>
-
-
Constructor Summary
Constructors Constructor Description VanillaDocumentMessageBodyReader(InteropFramework interopFramework)
-
Method Summary
Modifier and Type Method Description booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)org.openprovenance.prov.vanilla.DocumentreadFrom(Class<org.openprovenance.prov.vanilla.Document> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream is)StringtrimCharSet(jakarta.ws.rs.core.MediaType mediaType)
-
-
-
Constructor Detail
-
VanillaDocumentMessageBodyReader
public VanillaDocumentMessageBodyReader(InteropFramework interopFramework)
-
-
Method Detail
-
trimCharSet
public String trimCharSet(jakarta.ws.rs.core.MediaType mediaType)
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isReadablein interfacejakarta.ws.rs.ext.MessageBodyReader<org.openprovenance.prov.vanilla.Document>
-
readFrom
public org.openprovenance.prov.vanilla.Document readFrom(Class<org.openprovenance.prov.vanilla.Document> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream is) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<org.openprovenance.prov.vanilla.Document>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
-