Class JSONMapProvider

java.lang.Object
org.apache.hadoop.lib.wsrs.JSONMapProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Map>

@Provider @Produces("application/json; charset=utf-8") @Private public class JSONMapProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<Map>
  • Constructor Details

    • JSONMapProvider

      public JSONMapProvider()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Map>
    • getSize

      public long getSize(Map map, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface javax.ws.rs.ext.MessageBodyWriter<Map>
    • writeTo

      public void writeTo(Map map, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap, OutputStream outputStream) throws IOException, javax.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Map>
      Throws:
      IOException
      javax.ws.rs.WebApplicationException