Class FileRangeResponseTransformer

  • All Implemented Interfaces:
    Extension, ResponseDefinitionTransformerV2

    public class FileRangeResponseTransformer
    extends Object
    implements ResponseDefinitionTransformerV2
    Provides support for range reads in Wiremock (which does not support range requests natively). Useful to test cloud native data sources with a local Wiremock server
    • Constructor Detail

      • FileRangeResponseTransformer

        public FileRangeResponseTransformer()
    • Method Detail

      • transform

        public ResponseDefinition transform​(ServeEvent serveEvent)
        Specified by:
        transform in interface ResponseDefinitionTransformerV2
      • getName

        public String getName()
        Specified by:
        getName in interface Extension
      • applyGlobally

        public boolean applyGlobally()
        Specified by:
        applyGlobally in interface ResponseDefinitionTransformerV2