com.thalesgroup.dtkit.ws.rs.providers
Class InputMetricJSONProvider

java.lang.Object
  extended by com.thalesgroup.dtkit.ws.rs.providers.InputMetricJSONProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<InputMetricsResult>, javax.ws.rs.ext.MessageBodyWriter

@Provider
public class InputMetricJSONProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter, javax.ws.rs.ext.MessageBodyReader<InputMetricsResult>


Constructor Summary
InputMetricJSONProvider()
           
 
Method Summary
 long getSize(java.lang.Object obj, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 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 mediaType)
           
 InputMetricsResult readFrom(java.lang.Class<InputMetricsResult> 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.lang.Object target, 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 httpHeaders, java.io.OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputMetricJSONProvider

public InputMetricJSONProvider()
Method Detail

getSize

public long getSize(java.lang.Object obj,
                    java.lang.Class type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter

isWriteable

public boolean isWriteable(java.lang.Class type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter

writeTo

public void writeTo(java.lang.Object target,
                    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 httpHeaders,
                    java.io.OutputStream outputStream)
             throws java.io.IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter
Throws:
java.io.IOException

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<InputMetricsResult>

readFrom

public InputMetricsResult readFrom(java.lang.Class<InputMetricsResult> 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
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<InputMetricsResult>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2004-2011. All Rights Reserved.