Class XmlKeysWriter
java.lang.Object
com.tangosol.coherence.rest.providers.XmlKeysWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Set>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MarshallerRegistryMarshaller registry to obtain element marshallers from. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.XmlKeysWriter(MarshallerRegistry registry) Construct an XmlKeysWriter instance. -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream stream)
-
Field Details
-
m_marshallerRegistry
Marshaller registry to obtain element marshallers from.
-
-
Constructor Details
-
XmlKeysWriter
public XmlKeysWriter()Default constructor. -
XmlKeysWriter
Construct an XmlKeysWriter instance.- Parameters:
registry- marshaller registry to use
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Set>
-
getSize
public long getSize(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<Set>
-
writeTo
public void writeTo(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream stream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Set>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-