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 StringTRANSFORMER_NAME
-
Constructor Summary
Constructors Constructor Description FileRangeResponseTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyGlobally()StringgetName()ResponseDefinitiontransform(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:
transformin interfaceResponseDefinitionTransformerV2
-
getName
public String getName()
- Specified by:
getNamein interfaceExtension
-
applyGlobally
public boolean applyGlobally()
- Specified by:
applyGloballyin interfaceResponseDefinitionTransformerV2
-
-