Class RequestSchemaValidator

java.lang.Object
de.captaingoldfish.scim.sdk.server.schemas.validation.AbstractSchemaValidator
de.captaingoldfish.scim.sdk.server.schemas.validation.RequestSchemaValidator

public class RequestSchemaValidator extends AbstractSchemaValidator
Since:
24.04.2021
Author:
Pascal Knueppel
  • Constructor Details

  • Method Details

    • validateAttribute

      protected Optional<com.fasterxml.jackson.databind.JsonNode> validateAttribute(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.JsonNode attribute)
      validates the attribute in a request context
      Specified by:
      validateAttribute in class AbstractSchemaValidator
      Parameters:
      schemaAttribute - the definition of the attribute that must be validated
      attribute - the attribute to validate
      Returns:
      the validated attribute
    • getHttpStatusCode

      protected int getHttpStatusCode()
      the http status code to use in the DocumentValidationException if the validation fails. Should be 400 (bad request) for requests and 500 (internal server error) for responses
      Specified by:
      getHttpStatusCode in class AbstractSchemaValidator
    • getValidationContext

      protected ValidationContext getValidationContext()
      the current validation context for the request. If any error occurs the execution must be aborted before the ResourceHandler implementation is called