
Package ca.uhn.fhir.rest.server
Class RestfulServerConfiguration
java.lang.Object
ca.uhn.fhir.rest.server.RestfulServerConfiguration
- All Implemented Interfaces:
IResourceRepositoryCache,ISearchParamRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
ISearchParamRegistry.SearchParamLookupContextEnum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidca.uhn.fhir.context.RuntimeSearchParamgetActiveSearchParam(String theResourceName, String theParamName, ISearchParamRegistry.SearchParamLookupContextEnum theContext) ca.uhn.fhir.context.RuntimeSearchParamgetActiveSearchParamByUrl(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.FhirContextGets theFhirContextassociated with this server.Get the implementationDescriptionGet the resourceBindingsGet the serverAddressStrategyGet the serverBindingsGet the serverNameGet the serverVersionvoidsetConformanceDate(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 fhirContextvoidsetGlobalBindings(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 resourceBindingsvoidsetServerAddressStrategy(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, waitMethods inherited from interface ca.uhn.fhir.rest.server.util.IResourceRepositoryCache
forceRefresh, requestRefreshMethods inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
getActiveComboSearchParamById, getActiveComboSearchParams, getActiveComboSearchParams, getActiveComboSearchParams, getActiveSearchParam, getActiveSearchParams, getRuntimeSearchParam, getRuntimeSearchParams, getValidSearchParameterNamesIncludingMeta, hasActiveSearchParam, isInitialized, 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 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
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:
getActiveSearchParamin 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:
getActiveSearchParamsin 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:ISearchParamRegistryFetch a SearchParameter by URL- Specified by:
getActiveSearchParamByUrlin interfaceISearchParamRegistry- Parameters:
theContext- The context to return active search params for, or null to return any active search params- Returns:
- Returns
nullif it can't be found
-