Class DescriptionProcessor

java.lang.Object
org.mockserver.dashboard.serializers.DescriptionProcessor

public class DescriptionProcessor extends Object
  • Constructor Details

    • DescriptionProcessor

      public DescriptionProcessor(org.mockserver.configuration.Configuration configuration)
      Parameters:
      configuration - the running server's configuration, which applies to what parsing an OpenAPI spec fetches
  • Method Details

    • getMaxHttpRequestLength

      public int getMaxHttpRequestLength()
    • getMaxOpenAPILength

      public int getMaxOpenAPILength()
    • getMaxOpenAPIObjectLength

      public int getMaxOpenAPIObjectLength()
    • getMaxLogEventLength

      public int getMaxLogEventLength()
    • description

      public Description description(Object object)
    • description

      public Description description(Object object, String id)
    • receivedRequestDescription

      public Description receivedRequestDescription(Object request, Integer binaryLength)
      As description(Object), also describing a DNS query by its name and type, and a binary message by its length and first bytes in hex. The bytes are left out when redactSecretsInLog is on, as the message itself is masked then.
      Parameters:
      binaryLength - the length of a binary message as received, which may be longer than the bytes the dashboard shows; null to use the length of the bytes in request