Package netflix.karyon.examples.hellonoss.common

Examples of netflix.karyon.examples.hellonoss.common.LoggingInterceptor


    private final HttpRequestHandler<ByteBuf, ByteBuf> delegate;

    public RouterWithInterceptors() {
        SimpleRouter router = new SimpleRouter();
        HttpInterceptorSupport<ByteBuf, ByteBuf> interceptorSupport = new HttpInterceptorSupport<ByteBuf, ByteBuf>();
        interceptorSupport.forUri("/*").intercept(new LoggingInterceptor());
        interceptorSupport.forUri("/hello").intercept(new AuthInterceptor(new AuthenticationServiceImpl()));
        delegate = new HttpRequestHandler<ByteBuf, ByteBuf>(router, interceptorSupport);
    }
View Full Code Here

TOP

Related Classes of netflix.karyon.examples.hellonoss.common.LoggingInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.