Class XmlMapWriter
java.lang.Object
com.tangosol.coherence.rest.providers.XmlMapWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Map>
@Provider
@Produces("application/xml")
public class XmlMapWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<Map>
Provider responsible for converting Java maps to an XML formatted stream.
- Author:
- vp 2011.07.18
-
Field Summary
Modifier and TypeFieldDescriptionprotected MarshallerRegistry
Marshaller registry to obtain element marshallers from. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Map map, Class<?> aClass, Type type, Annotation[] aAnnotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> clz, Type type, Annotation[] aAnnotations, jakarta.ws.rs.core.MediaType mediaType) void
writeTo
(Map map, 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
-
XmlMapWriter
public XmlMapWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Map>
-
getSize
public long getSize(Map map, Class<?> aClass, Type type, Annotation[] aAnnotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Map>
-
writeTo
public void writeTo(Map map, 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:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Map>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-