Skip to content

Commit

Permalink
Update transforming-responses.md (#214)
Browse files Browse the repository at this point in the history
Fixed documentation as ResponseDefinitionTransformerV2 and ResponseTransformerV2 are interfaces.
  • Loading branch information
Bursul authored Oct 16, 2023
1 parent 973292f commit cf4bf3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _docs/extensibility/transforming-responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ booleans, maps and lists) can be used.

## Response definition transformation

To transform `ResponseDefinition` extend the `ResponseDefinitionTransformerV2` class:
To transform `ResponseDefinition` implement the `ResponseDefinitionTransformerV2` interface:

```java
public static class ExampleTransformer extends ResponseDefinitionTransformerV2 {
public static class ExampleTransformer implements ResponseDefinitionTransformerV2 {

@Override
public ResponseDefinition transform(ServeEvent serveEvent) {
Expand Down Expand Up @@ -165,7 +165,7 @@ A response transformer extension class is identical to `ResponseDefinitionTransf
This transformer is the best option if you want to transform the response from a proxy call.

```java
public static class StubResponseTransformerWithParams extends ResponseTransformerV2 {
public static class StubResponseTransformerWithParams implements ResponseTransformerV2 {

@Override
public Response transform(Response response, ServeEvent serveEvent) {
Expand Down

0 comments on commit cf4bf3b

Please sign in to comment.