Class JsonStructureHandler
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonStructureHandler
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
,jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
public class JsonStructureHandler extends Object implements jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>, jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
-
-
Constructor Summary
Constructors Constructor Description JsonStructureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.json.JsonStructure
readFrom(Class<jakarta.json.JsonStructure> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
void
writeTo(jakarta.json.JsonStructure o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
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.json.JsonStructure>
-
writeTo
public void writeTo(jakarta.json.JsonStructure o, 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.json.JsonStructure>
- 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.json.JsonStructure>
-
readFrom
public jakarta.json.JsonStructure readFrom(Class<jakarta.json.JsonStructure> 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.json.JsonStructure>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-