All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.winterly.rxjersey.server.RxRequestInterceptor Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
package net.winterly.rxjersey.server;

import org.glassfish.hk2.api.ServiceLocator;
import org.jvnet.hk2.annotations.Contract;

import javax.ws.rs.container.ContainerRequestContext;

/**
 * Contract for dispatch request interceptor 
* Interceptors implementing {@link RxRequestInterceptor} should be programmatically registered in {@link ServiceLocator} * * @param return type of interceptor (Supposed to be Observable or Future) */ @Contract public interface RxRequestInterceptor { /** * This method will be called for each request and should be implemented as non-blocking * * @param requestContext request context * @return Future or Observable */ T intercept(ContainerRequestContext requestContext); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy