Package ca.uhn.fhir.rest.server
Class RestfulServerConfiguration
- java.lang.Object
-
- ca.uhn.fhir.rest.server.RestfulServerConfiguration
-
public class RestfulServerConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description RestfulServerConfiguration()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<BaseMethodBinding<?>>>collectMethodBindings()voidcomputeSharedSupertypeForResourcePerName(Collection<IResourceProvider> providers)org.hl7.fhir.instance.model.api.IPrimitiveType<Date>getConformanceDate()Get the date that will be specified in the conformance profile exported by this server.ca.uhn.fhir.context.FhirContextgetFhirContext()Gets theFhirContextassociated with this server.StringgetImplementationDescription()Get the implementationDescriptionMap<String,Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>>getNameToSharedSupertype()Collection<ResourceBinding>getResourceBindings()Get the resourceBindingsIServerAddressStrategygetServerAddressStrategy()Get the serverAddressStrategyList<BaseMethodBinding<?>>getServerBindings()Get the serverBindingsStringgetServerName()Get the serverNameStringgetServerVersion()Get the serverVersionBindingsprovideBindings()voidsetConformanceDate(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theConformanceDate)Set the date that will be specified in the conformance profile exported by this server.RestfulServerConfigurationsetFhirContext(ca.uhn.fhir.context.FhirContext fhirContext)Set the fhirContextRestfulServerConfigurationsetImplementationDescription(String implementationDescription)Set the implementationDescriptionRestfulServerConfigurationsetNameToSharedSupertype(Map<String,Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> resourceNameToSharedSupertype)RestfulServerConfigurationsetResourceBindings(Collection<ResourceBinding> resourceBindings)Set the resourceBindingsvoidsetServerAddressStrategy(IServerAddressStrategy serverAddressStrategy)Set the serverAddressStrategyRestfulServerConfigurationsetServerBindings(List<BaseMethodBinding<?>> theServerBindings)Set the theServerBindingsRestfulServerConfigurationsetServerName(String serverName)Set the serverNameRestfulServerConfigurationsetServerVersion(String serverVersion)Set the serverVersion
-
-
-
Constructor Detail
-
RestfulServerConfiguration
public RestfulServerConfiguration()
Constructor
-
-
Method Detail
-
getResourceBindings
public Collection<ResourceBinding> getResourceBindings()
Get the resourceBindings- Returns:
- the resourceBindings
-
setResourceBindings
public RestfulServerConfiguration setResourceBindings(Collection<ResourceBinding> resourceBindings)
Set the resourceBindings- Parameters:
resourceBindings- the resourceBindings to set
-
getServerBindings
public List<BaseMethodBinding<?>> getServerBindings()
Get the serverBindings- Returns:
- the serverBindings
-
setServerBindings
public RestfulServerConfiguration setServerBindings(List<BaseMethodBinding<?>> theServerBindings)
Set the theServerBindings
-
getNameToSharedSupertype
public Map<String,Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> getNameToSharedSupertype()
-
setNameToSharedSupertype
public RestfulServerConfiguration setNameToSharedSupertype(Map<String,Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> resourceNameToSharedSupertype)
-
getImplementationDescription
public String getImplementationDescription()
Get the implementationDescription- Returns:
- the implementationDescription
-
setImplementationDescription
public RestfulServerConfiguration setImplementationDescription(String implementationDescription)
Set the implementationDescription- Parameters:
implementationDescription- the implementationDescription to set
-
getServerVersion
public String getServerVersion()
Get the serverVersion- Returns:
- the serverVersion
-
setServerVersion
public RestfulServerConfiguration setServerVersion(String serverVersion)
Set the serverVersion- Parameters:
serverVersion- the serverVersion to set
-
getServerName
public String getServerName()
Get the serverName- Returns:
- the serverName
-
setServerName
public RestfulServerConfiguration setServerName(String serverName)
Set the serverName- Parameters:
serverName- the serverName to set
-
getFhirContext
public ca.uhn.fhir.context.FhirContext getFhirContext()
Gets theFhirContextassociated with this server. For efficient processing, resource providers and plain providers should generally use this context if one is needed, as opposed to creating their own.
-
setFhirContext
public RestfulServerConfiguration setFhirContext(ca.uhn.fhir.context.FhirContext fhirContext)
Set the fhirContext- Parameters:
fhirContext- the fhirContext to set
-
getServerAddressStrategy
public IServerAddressStrategy getServerAddressStrategy()
Get the serverAddressStrategy- Returns:
- the serverAddressStrategy
-
setServerAddressStrategy
public void setServerAddressStrategy(IServerAddressStrategy serverAddressStrategy)
Set the serverAddressStrategy- Parameters:
serverAddressStrategy- the serverAddressStrategy to set
-
getConformanceDate
public org.hl7.fhir.instance.model.api.IPrimitiveType<Date> getConformanceDate()
Get the date that will be specified in the conformance profile exported by this server. Typically this would be populated with an InstanceType.
-
setConformanceDate
public void setConformanceDate(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theConformanceDate)
Set the date that will be specified in the conformance profile exported by this server. Typically this would be populated with an InstanceType.
-
provideBindings
public Bindings provideBindings()
-
collectMethodBindings
public Map<String,List<BaseMethodBinding<?>>> collectMethodBindings()
-
computeSharedSupertypeForResourcePerName
public void computeSharedSupertypeForResourcePerName(Collection<IResourceProvider> providers)
-
-