Uses of Class
org.mockserver.imports.ImportRedaction.Options
Packages that use ImportRedaction.Options
-
Uses of ImportRedaction.Options in org.mockserver.imports
Methods in org.mockserver.imports that return ImportRedaction.OptionsModifier and TypeMethodDescriptionstatic ImportRedaction.OptionsImportRedaction.Options.disabled()static ImportRedaction.OptionsImportRedaction.Options.enabled()ImportRedaction.Options.withAdditionalSensitiveBodyFields(Collection<String> bodyFields) Add JSON body field names to redact on top ofImportRedaction.DEFAULT_SENSITIVE_BODY_FIELDS.ImportRedaction.Options.withAdditionalSensitiveHeaders(Collection<String> headerNames) Add header names to redact on top ofFixtureRedactor.defaultSensitiveHeaders().ImportRedaction.Options.withEnabled(boolean enabled) Methods in org.mockserver.imports with parameters of type ImportRedaction.OptionsModifier and TypeMethodDescriptionHarImporter.importExpectations(String harJson, ImportRedaction.Options redactionOptions) Parses a HAR JSON string and returns one expectation per entry, applying the supplied redaction options before the expectations are returned.MockoonImporter.importExpectations(String environmentJson, ImportRedaction.Options redactionOptions) MountebankImporter.importExpectations(String imposterJson, ImportRedaction.Options redactionOptions) PostmanCollectionImporter.importExpectations(String collectionJson, ImportRedaction.Options redactionOptions) Parses a Postman Collection v2.x JSON string and returns one expectation per saved example response, applying the supplied redaction options before the expectations are returned.WireMockImporter.importExpectations(String wireMockJson, ImportRedaction.Options redactionOptions) RecordedTrafficImporter.importRecordedTraffic(String ndjson, ImportRedaction.Options redactionOptions) Parse an NDJSON recorded-traffic archive, applying the supplied redaction options.static List<Expectation>ImportRedaction.redact(List<Expectation> expectations, ImportRedaction.Options options) Redact the supplied expectations according tooptions.static List<Expectation>ImportRedaction.redactPreservingActions(List<Expectation> expectations, ImportRedaction.Options options) Redact expectations produced by a migration importer (WireMockImporter,MountebankImporter,MockoonImporter) while preserving the action type and matching constraints.static List<HttpRequestAndHttpResponse>ImportRedaction.redactRecordedTraffic(List<HttpRequestAndHttpResponse> pairs, ImportRedaction.Options options) Redact recorded request/response pairs (loaded from a persisted NDJSON archive byRecordedTrafficImporter) according tooptions, using the same sensitive-header and body-field masking asImportRedaction.redact(List, Options). -
Uses of ImportRedaction.Options in org.mockserver.mock
Methods in org.mockserver.mock with parameters of type ImportRedaction.OptionsModifier and TypeMethodDescriptionHttpState.promoteRecordings(RequestDefinition filter, boolean consolidate, boolean parameterize, ImportRedaction.Options redactionOptions) Promote traffic already recorded by MockServer's forwarding/proxy mode into ACTIVE mock expectations — the shared implementation behindPUT /mockserver/recordings/promoteand thepromote_recordingsMCP tool, so an agent can "record then mock" in one step. -
Uses of ImportRedaction.Options in org.mockserver.mock.pact
Methods in org.mockserver.mock.pact with parameters of type ImportRedaction.OptionsModifier and TypeMethodDescriptionPactImporter.importExpectations(String pactJson, ImportRedaction.Options redactionOptions) Parses a Pact v3 contract and returns one expectation per interaction, applying the supplied redaction options before the expectations are returned.