Package ca.uhn.fhir.jaxrs.server.util
Class JaxRsMethodBindings
java.lang.Object
ca.uhn.fhir.jaxrs.server.util.JaxRsMethodBindings
Class that contains the method bindings defined by a ResourceProvider
- Author:
- Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJaxRsMethodBindings
(AbstractJaxRsProvider theProvider, Class<? extends AbstractJaxRsProvider> theProviderClass) The constructor -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.rest.server.method.BaseMethodBinding
getBinding
(ca.uhn.fhir.rest.api.RestOperationTypeEnum operationType, String theBindingKey) Get the bindingstatic JaxRsMethodBindings
getMethodBindings
(AbstractJaxRsProvider theProvider, Class<? extends AbstractJaxRsProvider> theProviderClass) Get the method bindings for the given class.
-
Field Details
-
DEFAULT_METHOD_KEY
DEFAULT_METHOD_KEY=""- See Also:
-
-
Constructor Details
-
JaxRsMethodBindings
public JaxRsMethodBindings(AbstractJaxRsProvider theProvider, Class<? extends AbstractJaxRsProvider> theProviderClass) The constructor- Parameters:
theProvider
- the provider which is an implementation of the theProviderClasstheProviderClass
- the class definition contaning the operations
-
-
Method Details
-
getBinding
public ca.uhn.fhir.rest.server.method.BaseMethodBinding getBinding(ca.uhn.fhir.rest.api.RestOperationTypeEnum operationType, String theBindingKey) Get the binding- Parameters:
operationType
- the type of operationtheBindingKey
- the binding key- Returns:
- the binding defined
- Throws:
ca.uhn.fhir.rest.server.exceptions.NotImplementedOperationException
- cannot be found
-
getMethodBindings
public static JaxRsMethodBindings getMethodBindings(AbstractJaxRsProvider theProvider, Class<? extends AbstractJaxRsProvider> theProviderClass) Get the method bindings for the given class. If this class is not yet contained in the classBindings, they will be added for this class- Parameters:
theProvider
- the implementation classtheProviderClass
- the provider class- Returns:
- the methodBindings for this class
-