org.glassfish.jersey.server.internal.inject.MultivaluedParameterExtractorProvider Java Examples

The following examples show how to use org.glassfish.jersey.server.internal.inject.MultivaluedParameterExtractorProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GuiceBindingsModule.java    From dropwizard-guicey with MIT License 6 votes vote down vote up
@Override
protected void configure() {
    jerseyToGuiceGlobal(MultivaluedParameterExtractorProvider.class);
    jerseyToGuiceGlobal(Application.class);
    jerseyToGuiceGlobal(Providers.class);

    // request scoped objects
    jerseyToGuice(UriInfo.class);
    jerseyToGuice(ResourceInfo.class);
    jerseyToGuice(HttpHeaders.class);
    jerseyToGuice(SecurityContext.class);
    jerseyToGuice(Request.class);
    jerseyToGuice(ContainerRequest.class);
    jerseyToGuice(AsyncContext.class);

    if (!guiceServletSupport) {
        // bind request and response objects when guice servlet module not registered
        // but this will work only for resources
        jerseyToGuice(HttpServletRequest.class);
        jerseyToGuice(HttpServletResponse.class);
    }
}
 
Example #2
Source File: RateLimitBundle.java    From ratelimitj with Apache License 2.0 5 votes vote down vote up
@Inject
public RateLimitingFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider,
                                   final ServiceLocator injector,
                                   final RateLimiterFactoryProvider rateLimiterFactoryProvider) {
    super(extractorProvider, injector, Parameter.Source.UNKNOWN);
    this.requestRateLimiterFactory = rateLimiterFactoryProvider.factory;
}
 
Example #3
Source File: Pac4JValueFactoryProvider.java    From jax-rs-pac4j with Apache License 2.0 5 votes vote down vote up
@Inject
protected Pac4JProfileValueFactoryProvider(ProfileManagerFactoryBuilder manager,
        OptionalProfileFactoryBuilder opt, ProfileFactoryBuilder profile,
        MultivaluedParameterExtractorProvider mpep, ServiceLocator locator) {
    super(mpep, locator, Parameter.Source.UNKNOWN);
    this.manager = manager;
    this.optProfile = opt;
    this.profile = profile;
}
 
Example #4
Source File: Pac4JValueFactoryProvider.java    From jax-rs-pac4j with Apache License 2.0 5 votes vote down vote up
@Inject
protected Pac4JProfileValueFactoryProvider(
    ProfileManagerFactoryBuilder manager,
    OptionalProfileFactoryBuilder opt,
    ProfileFactoryBuilder profile,
    Provider<MultivaluedParameterExtractorProvider> mpep
) {
    super(mpep, Parameter.Source.UNKNOWN);
    this.manager = manager;
    this.optProfile = opt;
    this.profile = profile;
}
 
Example #5
Source File: Pac4JValueFactoryProvider.java    From jax-rs-pac4j with Apache License 2.0 5 votes vote down vote up
@Inject
protected Pac4JProfileValueFactoryProvider(
    ProfileManagerFactoryBuilder manager,
    OptionalProfileFactoryBuilder opt,
    ProfileFactoryBuilder profile,
    Provider<MultivaluedParameterExtractorProvider> mpep
) {
    super(mpep, org.glassfish.jersey.model.Parameter.Source.UNKNOWN);
    this.manager = manager;
    this.optProfile = opt;
    this.profile = profile;
}
 
Example #6
Source File: AuthResolver.java    From keywhiz with Apache License 2.0 5 votes vote down vote up
@Inject
public AuthValueFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider,
    final ServiceLocator injector, ClientAuthFactory clientAuthFactory,
    AutomationClientAuthFactory automationClientAuthFactory, UserAuthFactory userAuthFactory) {
  super(extractorProvider, injector, Parameter.Source.UNKNOWN);
  this.clientAuthFactory = clientAuthFactory;
  this.automationClientAuthFactory = automationClientAuthFactory;
  this.userAuthFactory = userAuthFactory;
}
 
Example #7
Source File: TokenFactoryProvider.java    From robe with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Inject
public TokenFactoryProvider(
        final MultivaluedParameterExtractorProvider extractorProvider,
        ServiceLocator locator) {

    super(extractorProvider, locator, Parameter.Source.UNKNOWN);
}
 
Example #8
Source File: PrincipalValueFactoryProvider.java    From jersey-hmac-auth with Apache License 2.0 5 votes vote down vote up
@Inject
public PrincipalValueFactoryProvider(final MultivaluedParameterExtractorProvider mpep,
        final ServiceLocator locator, final PrincipalFactory<P> factory) {
    super(mpep, locator, UNKNOWN);
    notNull(factory, "factory cannot be null");
    this.factory = factory;
}
 
Example #9
Source File: SingularityAuthFactoryProvider.java    From Singularity with Apache License 2.0 5 votes vote down vote up
@javax.inject.Inject
public SingularityAuthFactoryProvider(
  final MultivaluedParameterExtractorProvider extractorProvider,
  ServiceLocator locator,
  SingularityAuthedUserFactory authFactory
) {
  super(extractorProvider, locator, Source.UNKNOWN);
  this.authFactory = authFactory;
}
 
Example #10
Source File: RateLimit429EnforcerFilterTest.java    From ratelimitj with Apache License 2.0 4 votes vote down vote up
@Inject
public TestRateLimitingFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider,
                                       final ServiceLocator injector) {
    super(extractorProvider, injector, Parameter.Source.UNKNOWN);
}
 
Example #11
Source File: AuthValueFactoryProvider.java    From dropwizard-simpleauth with Apache License 2.0 4 votes vote down vote up
@Inject
public AuthValueFactoryProvider(MultivaluedParameterExtractorProvider mpep,
                                ServiceLocator injector)
{
  super(mpep, injector, Parameter.Source.UNKNOWN);
}
 
Example #12
Source File: SearchFactoryProvider.java    From robe with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Inject
public SearchFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider,
                             ServiceLocator locator) {

    super(extractorProvider, locator, Parameter.Source.UNKNOWN);
}
 
Example #13
Source File: DummyAuth.java    From dropwizard-experiment with MIT License 4 votes vote down vote up
@Inject
public DummyAuth(MultivaluedParameterExtractorProvider mpep, ServiceLocator locator) {
    super(mpep, locator, Parameter.Source.UNKNOWN);
}
 
Example #14
Source File: SessionHelperFactoryProvider.java    From commafeed with Apache License 2.0 4 votes vote down vote up
@Inject
public SessionHelperFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector) {
	super(extractorProvider, injector, Parameter.Source.CONTEXT);
}
 
Example #15
Source File: SecurityCheckFactoryProvider.java    From commafeed with Apache License 2.0 4 votes vote down vote up
@Inject
public SecurityCheckFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector) {
	super(extractorProvider, injector, Parameter.Source.UNKNOWN);
}