@Test public void testPlainResource() { Bus bus = BusFactory.getDefaultBus(true); ResourceMethodInfoDTO[] resourceMethodInfoDTOS = ClassIntrospector.getResourceMethodInfos( PlainResource.class, bus ).toArray( new ResourceMethodInfoDTO[0] ); assertEquals(1, resourceMethodInfoDTOS.length); ResourceMethodInfoDTO resourceMethodInfoDTO = resourceMethodInfoDTOS[0]; assertEquals(HttpMethod.GET, resourceMethodInfoDTO.method); assertNull(resourceMethodInfoDTO.consumingMimeType); assertNull(resourceMethodInfoDTO.producingMimeType); assertEquals("/", resourceMethodInfoDTO.path); assertNull(resourceMethodInfoDTO.nameBindings); }
public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); } }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }  }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }  static Collection<ResourceMethodInfoDTO> getResourceMethodInfos(
        Class<?> clazz, Bus bus); }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }  static Collection<ResourceMethodInfoDTO> getResourceMethodInfos(
        Class<?> clazz, Bus bus);  }