public final class ResourceUtils extends Object
Modifier and Type | Method and Description |
---|---|
static JAXRSServerFactoryBean |
createApplication(javax.ws.rs.core.Application app,
boolean ignoreAppPath,
boolean staticSubresourceResolution,
boolean useSingletonResourceProvider,
Bus bus) |
static ClassResourceInfo |
createClassResourceInfo(Class<?> rClass,
Class<?> sClass,
boolean root,
boolean enableStatic) |
static ClassResourceInfo |
createClassResourceInfo(Class<?> rClass,
Class<?> sClass,
boolean root,
boolean enableStatic,
Bus bus) |
static ClassResourceInfo |
createClassResourceInfo(Class<?> rClass,
Class<?> sClass,
ClassResourceInfo parent,
boolean root,
boolean enableStatic,
Bus bus) |
static ClassResourceInfo |
createClassResourceInfo(Map<String,UserResource> resources,
UserResource model,
Class<?> defaultClass,
boolean isRoot,
boolean enableStatic,
Bus bus) |
static Object[] |
createConstructorArguments(Constructor<?> c,
Message m,
boolean perRequest) |
static Object[] |
createConstructorArguments(Constructor<?> c,
Message m,
boolean perRequest,
Map<Class<?>,Object> contextValues) |
static Feature |
createFeatureInstance(Class<? extends Feature> cls) |
static JAXBContext |
createJaxbContext(Set<Class<?>> classes,
Class<?>[] extraClass,
Map<String,Object> contextProperties) |
static Object |
createProviderInstance(Class<?> cls) |
static ClassResourceInfo |
createServiceClassResourceInfo(Map<String,UserResource> resources,
UserResource model,
Class<?> sClass,
boolean isRoot,
boolean enableStatic,
Bus bus) |
static Method |
findPostConstructMethod(Class<?> c) |
static Method |
findPostConstructMethod(Class<?> c,
String name) |
static Method |
findPreDestroyMethod(Class<?> c) |
static Method |
findPreDestroyMethod(Class<?> c,
String name) |
static Constructor<?> |
findResourceConstructor(Class<?> resourceClass,
boolean perRequest) |
static Class<?> |
getActualJaxbType(Class<?> type,
Method resourceMethod,
boolean inbound) |
static ResourceTypes |
getAllRequestResponseTypes(List<ClassResourceInfo> cris,
boolean jaxbOnly) |
static ResourceTypes |
getAllRequestResponseTypes(List<ClassResourceInfo> cris,
boolean jaxbOnly,
javax.ws.rs.ext.MessageBodyWriter<?> jaxbWriter) |
static InputStream |
getClasspathResourceStream(String path,
Class<?> callingClass,
Bus bus) |
static URL |
getClasspathResourceURL(String path,
Class<?> callingClass,
Bus bus) |
static Parameter |
getParameter(int index,
Annotation[] anns,
Class<?> type) |
static List<Parameter> |
getParameters(Method resourceMethod) |
static <T> T |
getResource(String path,
Class<T> resourceClass,
Bus bus) |
static List<UserResource> |
getResourcesFromElement(Element modelEl) |
static InputStream |
getResourceStream(String loc,
Bus bus) |
static URL |
getResourceURL(String loc,
Bus bus) |
static List<UserResource> |
getUserResources(InputStream is) |
static List<UserResource> |
getUserResources(String loc) |
static List<UserResource> |
getUserResources(String loc,
Bus bus) |
static boolean |
isValidResourceClass(Class<?> c) |
static Properties |
loadProperties(String propertiesLocation,
Bus bus) |
static javax.ws.rs.ApplicationPath |
locateApplicationPath(Class<?> appClass) |
public static ClassResourceInfo createClassResourceInfo(Map<String,UserResource> resources, UserResource model, Class<?> defaultClass, boolean isRoot, boolean enableStatic, Bus bus)
public static ClassResourceInfo createServiceClassResourceInfo(Map<String,UserResource> resources, UserResource model, Class<?> sClass, boolean isRoot, boolean enableStatic, Bus bus)
public static ClassResourceInfo createClassResourceInfo(Class<?> rClass, Class<?> sClass, boolean root, boolean enableStatic)
public static ClassResourceInfo createClassResourceInfo(Class<?> rClass, Class<?> sClass, boolean root, boolean enableStatic, Bus bus)
public static ClassResourceInfo createClassResourceInfo(Class<?> rClass, Class<?> sClass, ClassResourceInfo parent, boolean root, boolean enableStatic, Bus bus)
public static Constructor<?> findResourceConstructor(Class<?> resourceClass, boolean perRequest)
public static Parameter getParameter(int index, Annotation[] anns, Class<?> type)
public static List<UserResource> getUserResources(String loc, Bus bus)
public static InputStream getResourceStream(String loc, Bus bus) throws Exception
Exception
public static URL getResourceURL(String loc, Bus bus) throws Exception
Exception
public static InputStream getClasspathResourceStream(String path, Class<?> callingClass, Bus bus)
public static URL getClasspathResourceURL(String path, Class<?> callingClass, Bus bus)
public static Properties loadProperties(String propertiesLocation, Bus bus) throws Exception
Exception
public static List<UserResource> getUserResources(String loc)
public static List<UserResource> getUserResources(InputStream is) throws Exception
Exception
public static List<UserResource> getResourcesFromElement(Element modelEl)
public static ResourceTypes getAllRequestResponseTypes(List<ClassResourceInfo> cris, boolean jaxbOnly)
public static ResourceTypes getAllRequestResponseTypes(List<ClassResourceInfo> cris, boolean jaxbOnly, javax.ws.rs.ext.MessageBodyWriter<?> jaxbWriter)
public static Class<?> getActualJaxbType(Class<?> type, Method resourceMethod, boolean inbound)
public static Object[] createConstructorArguments(Constructor<?> c, Message m, boolean perRequest)
public static Object[] createConstructorArguments(Constructor<?> c, Message m, boolean perRequest, Map<Class<?>,Object> contextValues)
public static JAXRSServerFactoryBean createApplication(javax.ws.rs.core.Application app, boolean ignoreAppPath, boolean staticSubresourceResolution, boolean useSingletonResourceProvider, Bus bus)
public static boolean isValidResourceClass(Class<?> c)
public static javax.ws.rs.ApplicationPath locateApplicationPath(Class<?> appClass)
Apache CXF