
Class AddressValidatingInterceptor
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.validation.address.AddressValidatingInterceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 Stringprotected voidhandleRequest(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) voidresourcePreCreate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) voidresourcePreUpdate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) voidsetAddressValidator(IAddressValidator theAddressValidator) voidsetProperties(Properties theProperties) voidstart(Properties theProperties) protected booleanvalidateAddress(org.hl7.fhir.instance.model.api.IBase theAddress, ca.uhn.fhir.context.FhirContext theFhirContext) protected booleanvalidateAddresses(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
-