View Javadoc

1   package com.atlassian.plugins.rest.common.security.jersey;
2   
3   import com.atlassian.plugins.rest.common.security.AuthenticationContext;
4   import com.google.common.base.Preconditions;
5   import com.sun.jersey.spi.inject.SingletonTypeInjectableProvider;
6   
7   import javax.ws.rs.core.Context;
8   import javax.ws.rs.ext.Provider;
9   
10  @Provider
11  public class AuthenticationContextInjectableProvider extends SingletonTypeInjectableProvider<Context, AuthenticationContext>
12  {
13      public AuthenticationContextInjectableProvider(AuthenticationContext authenticationContext)
14      {
15          super(AuthenticationContext.class, Preconditions.checkNotNull(authenticationContext));
16      }
17  }