
Package ca.uhn.fhir.rest.server
Class RestfulServerConfiguration
java.lang.Object
ca.uhn.fhir.rest.server.RestfulServerConfiguration
- All Implemented Interfaces:
ISearchParamRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
ca.uhn.fhir.context.RuntimeSearchParam
getActiveSearchParam
(String theResourceName, String theParamName) ca.uhn.fhir.context.RuntimeSearchParam
getActiveSearchParamByUrl
(String theUrl) Fetch a SearchParameter by URLgetActiveSearchParams
(String theResourceName) org.hl7.fhir.instance.model.api.IPrimitiveType<Date>
Get the date that will be specified in the conformance profile exported by this server.ca.uhn.fhir.context.FhirContext
Gets theFhirContext
associated with this server.Get the implementationDescriptionGet the resourceBindingsGet the serverAddressStrategyGet the serverBindingsGet the serverNameGet the serverVersionvoid
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.setFhirContext
(ca.uhn.fhir.context.FhirContext fhirContext) Set the fhirContextvoid
setGlobalBindings
(List<BaseMethodBinding> theGlobalBindings) setImplementationDescription
(String implementationDescription) Set the implementationDescriptionsetNameToSharedSupertype
(Map<String, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> resourceNameToSharedSupertype) setResourceBindings
(Collection<ResourceBinding> resourceBindings) Set the resourceBindingsvoid
setServerAddressStrategy
(IServerAddressStrategy serverAddressStrategy) Set the serverAddressStrategysetServerBindings
(List<BaseMethodBinding> theServerBindings) Set the theServerBindingssetServerName
(String serverName) Set the serverNamesetServerVersion
(String serverVersion) Set the serverVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
forceRefresh, getActiveComboSearchParamById, getActiveComboSearchParams, getActiveComboSearchParams, getActiveComboSearchParams, getRuntimeSearchParam, getRuntimeSearchParams, getValidSearchParameterNamesIncludingMeta, requestRefresh, setPhoneticEncoder
-
Constructor Details
-
RestfulServerConfiguration
public RestfulServerConfiguration()Constructor
-
-
Method Details
-
getResourceBindings
Get the resourceBindings- Returns:
- the resourceBindings
-
setResourceBindings
Set the resourceBindings- Parameters:
resourceBindings
- the resourceBindings to set
-
getServerBindings
Get the serverBindings- Returns:
- the serverBindings
-
setServerBindings
Set the theServerBindings -
getImplementationDescription
Get the implementationDescription- Returns:
- the implementationDescription
-
setImplementationDescription
Set the implementationDescription- Parameters:
implementationDescription
- the implementationDescription to set
-
getServerVersion
Get the serverVersion- Returns:
- the serverVersion
-
setServerVersion
Set the serverVersion- Parameters:
serverVersion
- the serverVersion to set
-
getServerName
Get the serverName- Returns:
- the serverName
-
setServerName
Set the serverName- Parameters:
serverName
- the serverName to set
-
getFhirContext
Gets theFhirContext
associated 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
Set the fhirContext- Parameters:
fhirContext
- the fhirContext to set
-
getServerAddressStrategy
Get the serverAddressStrategy- Returns:
- the serverAddressStrategy
-
setServerAddressStrategy
Set the serverAddressStrategy- Parameters:
serverAddressStrategy
- the serverAddressStrategy to set
-
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
-
collectMethodBindings
-
getGlobalBindings
-
setGlobalBindings
-
getActiveSearchParam
public ca.uhn.fhir.context.RuntimeSearchParam getActiveSearchParam(String theResourceName, String theParamName) - Specified by:
getActiveSearchParam
in interfaceISearchParamRegistry
- Returns:
- Returns null if no match
-
getActiveSearchParams
- Specified by:
getActiveSearchParams
in interfaceISearchParamRegistry
- Returns:
- Returns all active search params for the given resource
-
getActiveSearchParamByUrl
Description copied from interface:ISearchParamRegistry
Fetch a SearchParameter by URL- Specified by:
getActiveSearchParamByUrl
in interfaceISearchParamRegistry
- Returns:
- Returns
null
if it can't be found
-