@Produces(value={"application/json","application/xml","text/plain"})
@Consumes(value={"application/x-www-form-urlencoded","application/json","application/json+fhir","application/xml+fhir"})
public abstract class AbstractJaxRsBundleProvider
extends AbstractJaxRsProvider
implements IRestfulServer<JaxRsRequest>, IBundleProvider
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJaxRsBundleProvider()
The default constructor.
|
protected |
AbstractJaxRsBundleProvider(Class<? extends AbstractJaxRsProvider> theProviderClass)
This constructor takes in an explicit interface class.
|
protected |
AbstractJaxRsBundleProvider(ca.uhn.fhir.context.FhirContext ctx)
Provides the ability to specify the
FhirContext. |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String resource)
Create all resources in one transaction
|
protected BaseMethodBinding<?> |
getBinding(ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation,
String theBindingKey)
Return the method binding for the given rest operation
|
JaxRsMethodBindings |
getBindings()
Return the bindings defined in this resource provider
|
ca.uhn.fhir.context.api.BundleInclusionRule |
getBundleInclusionRule()
Default: BundleInclusionRule.BASED_ON_INCLUDES
|
List<IServerInterceptor> |
getInterceptors_()
Default: an empty list of interceptors
|
IPagingProvider |
getPagingProvider()
Default: no paging provider
|
javax.ws.rs.core.Response |
search()
Search the resource type based on some filter criteria
|
getAddProfileTag, getBaseForRequest, getBaseForServer, getDefaultResponseEncoding, getElementsSupport, getETagSupport, getFhirContext, getHeaders, getInterceptorService, getParameters, getRequest, getRequest, getServerAddressStrategy, getUriInfo, handleException, isDefaultPrettyPrint, setHeaders, setUriInfo, withStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultPreferReturngetAddProfileTag, getDefaultResponseEncoding, getElementsSupport, getETagSupport, getFhirContext, getInterceptorService, isDefaultPrettyPrintgetCurrentPageId, getNextPageId, getPreviousPageId, getPublished, getResources, getUuid, preferredPageSize, sizeprotected AbstractJaxRsBundleProvider()
protected AbstractJaxRsBundleProvider(ca.uhn.fhir.context.FhirContext ctx)
FhirContext.ctx - the FhirContext instance.protected AbstractJaxRsBundleProvider(Class<? extends AbstractJaxRsProvider> theProviderClass)
theProviderClass - the interface of the class@POST public javax.ws.rs.core.Response create(String resource) throws IOException
resource - the body of the post method containing the bundle of the resources being created in a xml/json formIOException@GET public javax.ws.rs.core.Response search() throws IOException
IOExceptionprotected BaseMethodBinding<?> getBinding(ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation, String theBindingKey)
restOperation - the rest operation to retrievetheBindingKey - the key determining the method to be executed (needed for e.g. custom operation)public List<IServerInterceptor> getInterceptors_()
getInterceptors_ in interface IRestfulServerDefaultsgetInterceptors_ in class AbstractJaxRsProviderIRestfulServerDefaults.getInterceptors_()public IPagingProvider getPagingProvider()
getPagingProvider in interface IRestfulServer<JaxRsRequest>getPagingProvider in interface IRestfulServerDefaultsgetPagingProvider in class AbstractJaxRsProviderpublic ca.uhn.fhir.context.api.BundleInclusionRule getBundleInclusionRule()
getBundleInclusionRule in interface IRestfulServer<JaxRsRequest>public JaxRsMethodBindings getBindings()
Copyright © 2014–2019 University Health Network. All rights reserved.