Class XmlKeysWriter
- java.lang.Object
-
- com.tangosol.coherence.rest.providers.XmlKeysWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected MarshallerRegistry
m_marshallerRegistry
Marshaller registry to obtain element marshallers from.
-
Constructor Summary
Constructors Constructor Description XmlKeysWriter()
Default constructor.XmlKeysWriter(MarshallerRegistry registry)
Construct an XmlKeysWriter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
void
writeTo(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream stream)
-
-
-
Field Detail
-
m_marshallerRegistry
@Inject protected MarshallerRegistry m_marshallerRegistry
Marshaller registry to obtain element marshallers from.
-
-
Constructor Detail
-
XmlKeysWriter
public XmlKeysWriter()
Default constructor.
-
XmlKeysWriter
public XmlKeysWriter(MarshallerRegistry registry)
Construct an XmlKeysWriter instance.- Parameters:
registry
- marshaller registry to use
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<Set>
-
getSize
public long getSize(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<Set>
-
writeTo
public void writeTo(Set set, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream stream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<Set>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
-