Class AddressValidatingInterceptor
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.validation.address.AddressValidatingInterceptor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List
<org.hl7.fhir.instance.model.api.IBase> getAddresses
(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.context.FhirContext theFhirContext) protected String
protected void
handleRequest
(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) void
resourcePreCreate
(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) void
resourcePreUpdate
(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) void
setAddressValidator
(IAddressValidator theAddressValidator) void
setProperties
(Properties theProperties) void
start
(Properties theProperties) protected boolean
validateAddress
(org.hl7.fhir.instance.model.api.IBase theAddress, ca.uhn.fhir.context.FhirContext theFhirContext) protected boolean
validateAddresses
(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource, List<org.hl7.fhir.instance.model.api.IBase> theAddresses) Validates specified child addresses for the resource
-
Field Details
-
ADDRESS_TYPE_NAME
- See Also:
-
PROPERTY_VALIDATOR_CLASS
- See Also:
-
PROPERTY_EXTENSION_URL
- See Also:
-
ADDRESS_VALIDATION_DISABLED_HEADER
- See Also:
-
-
Constructor Details
-
AddressValidatingInterceptor
public AddressValidatingInterceptor() -
AddressValidatingInterceptor
-
-
Method Details
-
start
-
resourcePreCreate
public void resourcePreCreate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) -
resourcePreUpdate
public void resourcePreUpdate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) -
handleRequest
protected void handleRequest(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) -
validateAddresses
protected boolean validateAddresses(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource, List<org.hl7.fhir.instance.model.api.IBase> theAddresses) Validates specified child addresses for the resource- Returns:
- Returns true if all addresses are valid, or false if there is at least one invalid address
-
validateAddress
protected boolean validateAddress(org.hl7.fhir.instance.model.api.IBase theAddress, ca.uhn.fhir.context.FhirContext theFhirContext) -
getExtensionUrl
-
getAddresses
protected List<org.hl7.fhir.instance.model.api.IBase> getAddresses(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.context.FhirContext theFhirContext) -
getAddressValidator
-
setAddressValidator
-
getProperties
-
setProperties
-