Apache CXF API

org.apache.cxf.jaxrs.model
Class ClassResourceInfo

java.lang.Object
  extended by org.apache.cxf.jaxrs.model.AbstractResourceInfo
      extended by org.apache.cxf.jaxrs.model.BeanResourceInfo
          extended by org.apache.cxf.jaxrs.model.ClassResourceInfo

public class ClassResourceInfo
extends BeanResourceInfo


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.model.BeanResourceInfo
paramFields, paramMethods
 
Fields inherited from class org.apache.cxf.jaxrs.model.AbstractResourceInfo
CONSTRUCTOR_PROXY_MAP, resourceClass, root, serviceClass
 
Constructor Summary
ClassResourceInfo(Class<?> theResourceClass)
           
ClassResourceInfo(Class<?> theResourceClass, boolean theRoot)
           
ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass)
           
ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass, boolean theRoot)
           
ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass, boolean theRoot, boolean enableStatic, boolean createdFromModel, Bus bus)
           
ClassResourceInfo(Class<?> theResourceClass, Class<?> c, boolean theRoot, boolean enableStatic, boolean createdFromModel, String consumesTypes, String producesTypes, Bus bus)
           
ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass, boolean theRoot, boolean enableStatic, Bus bus)
           
ClassResourceInfo(ClassResourceInfo cri)
           
 
Method Summary
 void addSubClassResourceInfo(ClassResourceInfo cri)
           
 boolean contextsAvailable()
           
 ClassResourceInfo findResource(Class<?> typedClass, Class<?> instanceClass)
           
 Set<String> getAllowedMethods()
           
 List<javax.ws.rs.core.MediaType> getConsumeMime()
           
 MethodDispatcher getMethodDispatcher()
           
 Set<String> getNameBindings()
           
 ClassResourceInfo getParent()
           
 javax.ws.rs.Path getPath()
           
 List<javax.ws.rs.core.MediaType> getProduceMime()
           
 ResourceProvider getResourceProvider()
           
 ClassResourceInfo getSubResource(Class<?> typedClass, Class<?> instanceClass)
           
 ClassResourceInfo getSubResource(Class<?> typedClass, Class<?> instanceClass, Object instance)
           
 ClassResourceInfo getSubResource(Class<?> typedClass, Class<?> instanceClass, Object instance, boolean resolveContexts, Message message)
           
 Collection<ClassResourceInfo> getSubResources()
           
 URITemplate getURITemplate()
           
 boolean hasSubResources()
           
 void initBeanParamInfo(ServerProviderFactory factory)
           
 boolean isCreatedFromModel()
           
 boolean isSingleton()
           
 void setMethodDispatcher(MethodDispatcher md)
           
 void setNameBindings(Set<String> names)
           
 void setParent(ClassResourceInfo parent)
           
 void setResourceProvider(ResourceProvider rp)
           
 void setURITemplate(URITemplate u)
           
 
Methods inherited from class org.apache.cxf.jaxrs.model.BeanResourceInfo
getParameterFields, getParameterMethods, paramsAvailable
 
Methods inherited from class org.apache.cxf.jaxrs.model.AbstractResourceInfo
clearAllMaps, clearThreadLocalProxies, getBus, getConstructorProxies, getContextFieldProxy, getContextFields, getContextMethods, getContextSetterProxy, getResourceClass, getServiceClass, isRoot, setResourceClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassResourceInfo

public ClassResourceInfo(ClassResourceInfo cri)

ClassResourceInfo

public ClassResourceInfo(Class<?> theResourceClass,
                         Class<?> theServiceClass,
                         boolean theRoot,
                         boolean enableStatic,
                         Bus bus)

ClassResourceInfo

public ClassResourceInfo(Class<?> theResourceClass,
                         Class<?> theServiceClass,
                         boolean theRoot,
                         boolean enableStatic,
                         boolean createdFromModel,
                         Bus bus)

ClassResourceInfo

public ClassResourceInfo(Class<?> theResourceClass,
                         Class<?> c,
                         boolean theRoot,
                         boolean enableStatic,
                         boolean createdFromModel,
                         String consumesTypes,
                         String producesTypes,
                         Bus bus)

ClassResourceInfo

public ClassResourceInfo(Class<?> theResourceClass)

ClassResourceInfo

public ClassResourceInfo(Class<?> theResourceClass,
                         boolean theRoot)

ClassResourceInfo

public ClassResourceInfo(Class<?> theResourceClass,
                         Class<?> theServiceClass)

ClassResourceInfo

public ClassResourceInfo(Class<?> theResourceClass,
                         Class<?> theServiceClass,
                         boolean theRoot)
Method Detail

findResource

public ClassResourceInfo findResource(Class<?> typedClass,
                                      Class<?> instanceClass)

contextsAvailable

public boolean contextsAvailable()
Overrides:
contextsAvailable in class AbstractResourceInfo

getSubResource

public ClassResourceInfo getSubResource(Class<?> typedClass,
                                        Class<?> instanceClass)

getSubResource

public ClassResourceInfo getSubResource(Class<?> typedClass,
                                        Class<?> instanceClass,
                                        Object instance)

getSubResource

public ClassResourceInfo getSubResource(Class<?> typedClass,
                                        Class<?> instanceClass,
                                        Object instance,
                                        boolean resolveContexts,
                                        Message message)

addSubClassResourceInfo

public void addSubClassResourceInfo(ClassResourceInfo cri)

getSubResources

public Collection<ClassResourceInfo> getSubResources()

getNameBindings

public Set<String> getNameBindings()

setNameBindings

public void setNameBindings(Set<String> names)

getAllowedMethods

public Set<String> getAllowedMethods()

getURITemplate

public URITemplate getURITemplate()

setURITemplate

public void setURITemplate(URITemplate u)

getMethodDispatcher

public MethodDispatcher getMethodDispatcher()

setMethodDispatcher

public void setMethodDispatcher(MethodDispatcher md)

hasSubResources

public boolean hasSubResources()

isCreatedFromModel

public boolean isCreatedFromModel()

getResourceProvider

public ResourceProvider getResourceProvider()

setResourceProvider

public void setResourceProvider(ResourceProvider rp)

getProduceMime

public List<javax.ws.rs.core.MediaType> getProduceMime()

getConsumeMime

public List<javax.ws.rs.core.MediaType> getConsumeMime()

getPath

public javax.ws.rs.Path getPath()

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in class AbstractResourceInfo

setParent

public void setParent(ClassResourceInfo parent)

getParent

public ClassResourceInfo getParent()

initBeanParamInfo

public void initBeanParamInfo(ServerProviderFactory factory)

Apache CXF API

Apache CXF