Class EchoProxyRequestInterceptor
- java.lang.Object
-
- org.restheart.test.plugins.interceptors.EchoProxyRequestInterceptor
-
- All Implemented Interfaces:
ConfigurablePlugin,ExchangeTypeResolver<ByteArrayProxyRequest,ByteArrayProxyResponse>,Interceptor<ByteArrayProxyRequest,ByteArrayProxyResponse>,Plugin,ProxyInterceptor
public class EchoProxyRequestInterceptor extends Object implements ProxyInterceptor
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
-
Constructor Summary
Constructors Constructor Description EchoProxyRequestInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(ByteArrayProxyRequest request, ByteArrayProxyResponse response)voidinit(Map<String,Object> args)shows how to inject configuration via @OnInitbooleanresolve(ByteArrayProxyRequest request, ByteArrayProxyResponse response)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseType
-
-
-
-
Method Detail
-
init
public void init(Map<String,Object> args)
shows how to inject configuration via @OnInit- Parameters:
args-
-
handle
public void handle(ByteArrayProxyRequest request, ByteArrayProxyResponse response) throws Exception
- Specified by:
handlein interfaceInterceptor<ByteArrayProxyRequest,ByteArrayProxyResponse>- Throws:
Exception
-
resolve
public boolean resolve(ByteArrayProxyRequest request, ByteArrayProxyResponse response)
- Specified by:
resolvein interfaceInterceptor<ByteArrayProxyRequest,ByteArrayProxyResponse>
-
-