Package org.geotools.test.wiremock
Class FileRangeResponseTransformer
- Object
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRANSFORMER_NAME
-
Constructor Summary
Constructors Constructor Description FileRangeResponseTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyGlobally()
String
getName()
ResponseDefinition
transform(ServeEvent serveEvent)
-
-
-
Field Detail
-
TRANSFORMER_NAME
public static final String TRANSFORMER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
transform
public ResponseDefinition transform(ServeEvent serveEvent)
- Specified by:
transform
in interfaceResponseDefinitionTransformerV2
-
getName
public String getName()
- Specified by:
getName
in interfaceExtension
-
applyGlobally
public boolean applyGlobally()
- Specified by:
applyGlobally
in interfaceResponseDefinitionTransformerV2
-
-