private static List < MediaType > getResourceMethodProducibleTypes ( final ExtendedUriInfo extendedUriInfo ) { if ( extendedUriInfo . getMatchedResourceMethod ( ) != null && ! extendedUriInfo . getMatchedResourceMethod ( ) . getProducedTypes ( ) . isEmpty ( ) ) { return extendedUriInfo . getMatchedResourceMethod ( ) . getProducedTypes ( ) ; } return Collections . singletonList ( MediaType . WILDCARD_TYPE ) ; }
Return a list of producible media types of the last matched resource method .