Package ca.uhn.fhir.rest.server
Class RestfulServerConfiguration
java.lang.Object
ca.uhn.fhir.rest.server.RestfulServerConfiguration
- All Implemented Interfaces:
ISearchParamRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
ISearchParamRegistry.SearchParamLookupContextEnum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ca.uhn.fhir.context.RuntimeSearchParam
getActiveSearchParam
(String theResourceName, String theParamName, ISearchParamRegistry.SearchParamLookupContextEnum theContext) ca.uhn.fhir.context.RuntimeSearchParam
getActiveSearchParamByUrl
(String theUrl, ISearchParamRegistry.SearchParamLookupContextEnum theContext) Fetch a SearchParameter by URLgetActiveSearchParams
(String theResourceName, ISearchParamRegistry.SearchParamLookupContextEnum theContext) 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, getActiveSearchParam, getActiveSearchParams, getRuntimeSearchParam, getRuntimeSearchParams, getValidSearchParameterNamesIncludingMeta, isInitialized, 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(@Nonnull String theResourceName, @Nonnull String theParamName, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) - Specified by:
getActiveSearchParam
in interfaceISearchParamRegistry
- Parameters:
theContext
- The context to return active search params for, or null to return any active search params- Returns:
- Returns null if no match
-
getActiveSearchParams
public ResourceSearchParams getActiveSearchParams(@Nonnull String theResourceName, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) - Specified by:
getActiveSearchParams
in interfaceISearchParamRegistry
- Parameters:
theContext
- The context to return active search params for, or null to return any active search params- Returns:
- Returns all active search params for the given resource
-
getActiveSearchParamByUrl
@Nullable public ca.uhn.fhir.context.RuntimeSearchParam getActiveSearchParamByUrl(@Nonnull String theUrl, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) Description copied from interface:ISearchParamRegistry
Fetch a SearchParameter by URL- Specified by:
getActiveSearchParamByUrl
in interfaceISearchParamRegistry
- Parameters:
theContext
- The context to return active search params for, or null to return any active search params- Returns:
- Returns
null
if it can't be found
-