Modifier and Type | Field and Description |
---|---|
protected MarshallerRegistry |
m_marshallerRegistry
Marshaller registry to obtain element marshallers from.
|
Constructor and Description |
---|
XmlMapWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(Map map,
Class<?> aClass,
Type type,
Annotation[] aAnnotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> clz,
Type type,
Annotation[] aAnnotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(Map map,
Class<?> clz,
Type type,
Annotation[] aAnnotation,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream stream) |
@Inject protected MarshallerRegistry m_marshallerRegistry
public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Map>
public long getSize(Map map, Class<?> aClass, Type type, Annotation[] aAnnotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<Map>
public void writeTo(Map map, 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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Map>
IOException
javax.ws.rs.WebApplicationException