@Consumes(value="application/vnd.atomikos+json")
@Produces(value="application/vnd.atomikos+json")
@Provider
public class ParticipantsProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.Integer>>, javax.ws.rs.ext.MessageBodyReader<java.util.Map<java.lang.String,java.lang.Integer>>
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.ext.Providers |
providers |
Constructor and Description |
---|
ParticipantsProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(java.util.Map<java.lang.String,java.lang.Integer> l,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
java.util.HashMap<java.lang.String,java.lang.Integer> |
readFrom(java.lang.Class<java.util.Map<java.lang.String,java.lang.Integer>> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream) |
void |
writeTo(java.util.Map<java.lang.String,java.lang.Integer> t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream) |
public long getSize(java.util.Map<java.lang.String,java.lang.Integer> l, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mt)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.Integer>>
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.Integer>>
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<java.util.Map<java.lang.String,java.lang.Integer>>
public java.util.HashMap<java.lang.String,java.lang.Integer> readFrom(java.lang.Class<java.util.Map<java.lang.String,java.lang.Integer>> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<java.util.Map<java.lang.String,java.lang.Integer>>
java.io.IOException
javax.ws.rs.WebApplicationException
public void writeTo(java.util.Map<java.lang.String,java.lang.Integer> t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.Integer>>
java.io.IOException
javax.ws.rs.WebApplicationException
Copyright © 2019. All Rights Reserved.