Class SloCriteriaSerializer

java.lang.Object
org.mockserver.serialization.SloCriteriaSerializer

public class SloCriteriaSerializer extends Object
Serializer for the PUT /mockserver/verifySLO endpoint. Mirrors VerificationSequenceSerializer but parses leniently with a plain Jackson ObjectMapper — there is no JSON schema for SloCriteria (the v1 control-plane contract is small and the DTO tolerates absent fields), so the body is deserialized straight into a SloCriteriaDTO and built into the model via SloCriteriaDTO.buildObject().

The serialize(SloVerdict) side writes the verdict response. Because SloVerdict extends ObjectWithJsonToString it serializes cleanly via the shared ObjectMapperFactory writer, so no dedicated verdict DTO is required.

  • Constructor Details

    • SloCriteriaSerializer

      public SloCriteriaSerializer(MockServerLogger mockServerLogger)
  • Method Details