Class FhirServiceCorsConfiguration


  • public final class FhirServiceCorsConfiguration
    extends Object
    The settings for the CORS configuration of the service instance.
    • Constructor Detail

      • FhirServiceCorsConfiguration

        public FhirServiceCorsConfiguration()
    • Method Detail

      • origins

        public List<String> origins()
        Get the origins property: The origins to be allowed via CORS.
        Returns:
        the origins value.
      • withOrigins

        public FhirServiceCorsConfiguration withOrigins​(List<String> origins)
        Set the origins property: The origins to be allowed via CORS.
        Parameters:
        origins - the origins value to set.
        Returns:
        the FhirServiceCorsConfiguration object itself.
      • headers

        public List<String> headers()
        Get the headers property: The headers to be allowed via CORS.
        Returns:
        the headers value.
      • withHeaders

        public FhirServiceCorsConfiguration withHeaders​(List<String> headers)
        Set the headers property: The headers to be allowed via CORS.
        Parameters:
        headers - the headers value to set.
        Returns:
        the FhirServiceCorsConfiguration object itself.
      • methods

        public List<String> methods()
        Get the methods property: The methods to be allowed via CORS.
        Returns:
        the methods value.
      • withMethods

        public FhirServiceCorsConfiguration withMethods​(List<String> methods)
        Set the methods property: The methods to be allowed via CORS.
        Parameters:
        methods - the methods value to set.
        Returns:
        the FhirServiceCorsConfiguration object itself.
      • maxAge

        public Integer maxAge()
        Get the maxAge property: The max age to be allowed via CORS.
        Returns:
        the maxAge value.
      • withMaxAge

        public FhirServiceCorsConfiguration withMaxAge​(Integer maxAge)
        Set the maxAge property: The max age to be allowed via CORS.
        Parameters:
        maxAge - the maxAge value to set.
        Returns:
        the FhirServiceCorsConfiguration object itself.
      • allowCredentials

        public Boolean allowCredentials()
        Get the allowCredentials property: If credentials are allowed via CORS.
        Returns:
        the allowCredentials value.
      • withAllowCredentials

        public FhirServiceCorsConfiguration withAllowCredentials​(Boolean allowCredentials)
        Set the allowCredentials property: If credentials are allowed via CORS.
        Parameters:
        allowCredentials - the allowCredentials value to set.
        Returns:
        the FhirServiceCorsConfiguration object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.