Class EchoResponseInterceptor
java.lang.Object
org.restheart.test.plugins.interceptors.EchoResponseInterceptor
- All Implemented Interfaces:
ByteArrayInterceptor,ConfigurablePlugin,ExchangeTypeResolver<ByteArrayRequest,,ByteArrayResponse> Interceptor<ByteArrayRequest,,ByteArrayResponse> Plugin
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ByteArrayRequest request, ByteArrayResponse response) voidshows how to inject configuration via @OnInitbooleanresolve(ByteArrayRequest request, ByteArrayResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefaultMethods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseType
-
Constructor Details
-
EchoResponseInterceptor
public EchoResponseInterceptor()
-
-
Method Details
-
init
shows how to inject configuration via @OnInit- Parameters:
args-
-
handle
- Specified by:
handlein interfaceInterceptor<ByteArrayRequest,ByteArrayResponse> - Throws:
Exception
-
resolve
- Specified by:
resolvein interfaceInterceptor<ByteArrayRequest,ByteArrayResponse>
-