public void log(final String msg, final Object[] params) { this.log(FilteredLogger.DEFAULT_LOG_LEVEL, msg, params); }
public void log(final String msg, final Object param) { this.log(FilteredLogger.DEFAULT_LOG_LEVEL, msg, param); }
@Inject public GadgetOAuth2TokenStore(final OAuth2Store store, final GadgetSpecFactory specFactory) { this.store = store; this.specFactory = specFactory; if (GadgetOAuth2TokenStore.LOG.isLoggable()) { GadgetOAuth2TokenStore.LOG.log("this.store = {0}", this.store); GadgetOAuth2TokenStore.LOG.log("this.specFactory = {0}", this.specFactory); } }
@Inject public CodeAuthorizationResponseHandler(final Provider<OAuth2Message> oauth2MessageProvider, final List<ClientAuthenticationHandler> clientAuthenticationHandlers, final List<TokenEndpointResponseHandler> tokenEndpointResponseHandlers, final HttpFetcher fetcher) { this.oauth2MessageProvider = oauth2MessageProvider; this.clientAuthenticationHandlers = clientAuthenticationHandlers; this.tokenEndpointResponseHandlers = tokenEndpointResponseHandlers; this.fetcher = fetcher; if (CodeAuthorizationResponseHandler.LOG.isLoggable()) { CodeAuthorizationResponseHandler.LOG.log("this.oauth2MessageProvider = {0}", this.oauth2MessageProvider); CodeAuthorizationResponseHandler.LOG.log("this.clientAuthenticationHandlers = {0}", this.clientAuthenticationHandlers); CodeAuthorizationResponseHandler.LOG.log("this.tokenEndpointResponseHandlers = {0}", this.tokenEndpointResponseHandlers); CodeAuthorizationResponseHandler.LOG.log("this.fetcher = {0}", this.fetcher); } }
@Inject public TokenAuthorizationResponseHandler(final Provider<OAuth2Message> oauth2MessageProvider, final OAuth2Store store) { this.oauth2MessageProvider = oauth2MessageProvider; this.store = store; if (TokenAuthorizationResponseHandler.LOG.isLoggable()) { TokenAuthorizationResponseHandler.LOG.log("this.oauth2MessageProvider = {0}", this.oauth2MessageProvider); TokenAuthorizationResponseHandler.LOG.log("this.store = {0}", this.store); } }
@Test public void testLog_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String msg = ""; final Object param = new Object(); fixture.log(msg, param); }
@Test public void testLog_4() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Object param = new Object(); fixture.log(logLevel, msg, param); }
@Test public void testLog_5() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Throwable thrown = new Throwable(); fixture.log(logLevel, msg, thrown); }
@Test public void testLog_2() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String msg = ""; final Throwable thrown = new Throwable(); fixture.log(msg, thrown); }
@Test public void testLog_4() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Object param = new Object(); fixture.log(logLevel, msg, param); }
@Test public void testLog_2() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String msg = ""; final Throwable thrown = new Throwable(); fixture.log(msg, thrown); }
@Test public void testLog_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String msg = ""; final Object param = new Object(); fixture.log(msg, param); }
@Test public void testLog_5() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Throwable thrown = new Throwable(); fixture.log(logLevel, msg, thrown); }
@Test public void testLog_3() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String msg = ""; final Object[] params = new Object[] {}; fixture.log(msg, params); }
@Test public void testLog_6() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Object[] params = new Object[] {}; fixture.log(logLevel, msg, params); } }
@Test public void testLog_6() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final String msg = ""; final Object[] params = new Object[] {}; fixture.log(logLevel, msg, params); } }
@Test public void testLog_3() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final String msg = ""; final Object[] params = new Object[] {}; fixture.log(msg, params); }
public void clearClientCache() throws GadgetException { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "clearClientCache"); } try { this.cache.clearClients(); } catch (final OAuth2CacheException e) { if (isLogging) { BasicOAuth2Store.LOG.log("Error clearing OAuth2 Client cache", e); } throw new GadgetException(Code.OAUTH_STORAGE_ERROR, "Error clearing OAuth2Client cache", e); } if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "clearClientCache"); } } }
public void clearAccessorCache() throws GadgetException { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "clearAccessorCache"); } try { this.cache.clearAccessors(); } catch (final OAuth2CacheException e) { if (isLogging) { BasicOAuth2Store.LOG.log("Error clearing OAuth2 Accessor cache", e); } throw new GadgetException(Code.OAUTH_STORAGE_ERROR, "Error clearing OAuth2Accessor cache", e); } if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "clearAccessorCache"); } }
public void clearTokenCache() throws GadgetException { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "clearTokenCache"); } try { this.cache.clearTokens(); } catch (final OAuth2CacheException e) { if (isLogging) { BasicOAuth2Store.LOG.log("Error clearing OAuth2 Token cache", e); } throw new GadgetException(Code.OAUTH_STORAGE_ERROR, "Error clearing OAuth2Token cache", e); } if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "clearTokenCache"); } }