Class RequestResourceValidator

java.lang.Object
de.captaingoldfish.scim.sdk.server.schemas.validation.AbstractResourceValidator
de.captaingoldfish.scim.sdk.server.schemas.validation.RequestResourceValidator

public class RequestResourceValidator extends AbstractResourceValidator
validates a request document against the schema of the current ResourceType
Since:
24.02.2021
Author:
Pascal Knueppel
  • Constructor Details

  • Method Details

    • getValidationContext

      public ValidationContext getValidationContext()
      Returns:
      the validation context on the current schema validation
    • validateDocument

      public ScimObjectNode validateDocument(com.fasterxml.jackson.databind.JsonNode resource)
      assures that the meta-attribute that is sent by the client is added into the validated document. This meta information might be important to the ResourceHandler implementation
      Overrides:
      validateDocument in class AbstractResourceValidator
      Parameters:
      resource - the document that should be validated
      Returns:
      the validated document with the original meta 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 AbstractResourceValidator