@Produces(value={"application/json","application/xml"})
public abstract class AbstractJaxRsConformanceProvider
extends AbstractJaxRsProvider
implements IResourceProvider
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJaxRsConformanceProvider(ca.uhn.fhir.context.FhirContext ctx,
String implementationDescription,
String serverName,
String serverVersion)
Constructor allowing the description, servername and server to be set
|
protected |
AbstractJaxRsConformanceProvider(String implementationDescription,
String serverName,
String serverVersion)
Constructor allowing the description, servername and server to be set
|
| Modifier and Type | Method and Description |
|---|---|
int |
addProvider(IResourceProvider theProvider,
Class<? extends IResourceProvider> theProviderInterface)
This method will add a provider to the conformance.
|
javax.ws.rs.core.Response |
conformance()
This method will retrieve the conformance using the http GET method
|
javax.ws.rs.core.Response |
conformanceUsingOptions()
This method will retrieve the conformance using the http OPTIONS method
|
protected abstract ConcurrentHashMap<Class<? extends IResourceProvider>,IResourceProvider> |
getProviders()
This method must return all the resource providers which need to be included in the conformance
|
Class<org.hl7.fhir.instance.model.api.IBaseResource> |
getResourceType() |
protected void |
setUpPostConstruct()
This method will set the conformance during the postconstruct phase.
|
getAddProfileTag, getBaseForRequest, getBaseForServer, getDefaultResponseEncoding, getElementsSupport, getETagSupport, getFhirContext, getHeaders, getInterceptors_, getInterceptorService, getPagingProvider, getParameters, getRequest, getRequest, getServerAddressStrategy, getUriInfo, handleException, isDefaultPrettyPrint, setHeaders, setUriInfo, withStackTraceprotected AbstractJaxRsConformanceProvider(String implementationDescription, String serverName, String serverVersion)
implementationDescription - the implementation description. If null, "" is usedserverName - the server name. If null, "" is usedserverVersion - the server version. If null, "" is usedprotected AbstractJaxRsConformanceProvider(ca.uhn.fhir.context.FhirContext ctx, String implementationDescription, String serverName, String serverVersion)
ctx - the FhirContext instance.implementationDescription - the implementation description. If null, "" is usedserverName - the server name. If null, "" is usedserverVersion - the server version. If null, "" is used@PostConstruct protected void setUpPostConstruct()
getProviders() is used to get all the resource providers include in the
conformanceprotected abstract ConcurrentHashMap<Class<? extends IResourceProvider>,IResourceProvider> getProviders()
Object.getClass() may not give the
correct interface in a jee environment.@OPTIONS @Path(value="/metadata") public javax.ws.rs.core.Response conformanceUsingOptions() throws IOException
IOException@GET @Path(value="/metadata") public javax.ws.rs.core.Response conformance() throws IOException
IOExceptionpublic int addProvider(IResourceProvider theProvider, Class<? extends IResourceProvider> theProviderInterface) throws ca.uhn.fhir.context.ConfigurationException
RestfulServer.findResourceMethods(java.lang.Object)theProvider - an instance of the provider interfacetheProviderInterface - the class describing the providers interfaceca.uhn.fhir.context.ConfigurationExceptionRestfulServer.findResourceMethods(java.lang.Object)public Class<org.hl7.fhir.instance.model.api.IBaseResource> getResourceType()
getResourceType in interface IResourceProviderCopyright © 2014–2019 University Health Network. All rights reserved.