Class TckJaxbProvider
java.lang.Object
ee.jakarta.tck.ws.rs.spec.provider.jaxbcontext.TckJaxbProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.xml.bind.JAXBElement<String>>
,jakarta.ws.rs.ext.MessageBodyWriter<jakarta.xml.bind.JAXBElement<String>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(jakarta.xml.bind.JAXBElement<String> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) jakarta.xml.bind.JAXBElement<String>
readFrom
(Class<jakarta.xml.bind.JAXBElement<String>> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) void
writeTo
(jakarta.xml.bind.JAXBElement<String> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
TckJaxbProvider
public TckJaxbProvider()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.xml.bind.JAXBElement<String>>
-
getSize
public long getSize(jakarta.xml.bind.JAXBElement<String> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.xml.bind.JAXBElement<String>>
-
writeTo
public void writeTo(jakarta.xml.bind.JAXBElement<String> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.xml.bind.JAXBElement<String>>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.xml.bind.JAXBElement<String>>
-
readFrom
public jakarta.xml.bind.JAXBElement<String> readFrom(Class<jakarta.xml.bind.JAXBElement<String>> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.xml.bind.JAXBElement<String>>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-