@Override
 public <T2> T2 getEntity(GenericType<T2> genericType, Annotation[] ann) {
   return getEntity(genericType.getType(), genericType.getGenericType(), ann);
 }
Example #2
0
 /**
  * Extract an object using a built-in RESTEasy JAX-RS MessageBodyReader
  *
  * @param message
  * @param type
  * @param factory
  * @param <T>
  * @return
  * @throws UnknownMediaType
  * @throws UnmarshalException
  */
 public static <T> T getEntity(
     ClientMessage message, GenericType<T> type, ResteasyProviderFactory factory)
     throws UnknownMediaType, UnmarshalException {
   return getEntity(message, type.getType(), type.getGenericType(), factory);
 }
 @Override
 public <T2> T2 getEntity(GenericType<T2> genericType) {
   return getEntity(genericType.getType(), genericType.getGenericType());
 }