public boolean isLoggable() { return this.isLoggable(FilteredLogger.DEFAULT_LOG_LEVEL); }
public static boolean runImport(final OAuth2Persister source, final OAuth2Persister target, final boolean clean) { if (BasicOAuth2Store.LOG.isLoggable()) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "runImport", new Object[] { source, target, clean }); } // No import for default persistence return false; }
@Override protected void configure() { if (OAuth2HandlerModule.LOG.isLoggable()) { OAuth2HandlerModule.LOG.entering(OAuth2HandlerModule.class.getName(), "configure"); } }
@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 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); } }
public OAuth2Accessor getOAuth2Accessor(final OAuth2CallbackState state) { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "getOAuth2Accessor", state); } final OAuth2Accessor ret = this.cache.getOAuth2Accessor(state); if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "getOAuth2Accessor", ret); } return ret; }
public void storeOAuth2Accessor(final OAuth2Accessor accessor) { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "storeOAuth2Accessor", accessor); } this.cache.storeOAuth2Accessor(accessor); if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "storeOAuth2Accessor"); } }
public OAuth2Token createToken() { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "createToken"); } final OAuth2Token ret = this.internalCreateToken(); if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "clearCache", ret); } return ret; }
public OAuth2Accessor removeOAuth2Accessor(final OAuth2Accessor accessor) { final boolean isLogging = BasicOAuth2Store.LOG.isLoggable(); if (isLogging) { BasicOAuth2Store.LOG.entering(BasicOAuth2Store.LOG_CLASS, "removeOAuth2Accessor", accessor); } final OAuth2Accessor ret = null; if (accessor != null) { return this.cache.removeOAuth2Accessor(accessor); } if (isLogging) { BasicOAuth2Store.LOG.exiting(BasicOAuth2Store.LOG_CLASS, "removeOAuth2Accessor", ret); } return ret; }
private static String buildRefreshTokenUrl(final OAuth2Accessor accessor) { final boolean isLogging = BasicOAuth2Request.LOG.isLoggable(); if (isLogging) { BasicOAuth2Request.LOG.entering(BasicOAuth2Request.LOG_CLASS, "buildRefreshTokenUrl", accessor); } String ret = null; final String refreshUrl = accessor.getTokenUrl(); if (refreshUrl != null) { ret = BasicOAuth2Request.getCompleteRefreshUrl(refreshUrl); } if (isLogging) { BasicOAuth2Request.LOG.exiting(BasicOAuth2Request.LOG_CLASS, "buildRefreshTokenUrl", ret); } return ret; }
@Test public void testIsLoggable_2() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final boolean result = fixture.isLoggable(); Assert.assertEquals(false, result); }
@Test public void testIsLoggable_3() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final boolean result = fixture.isLoggable(logLevel); Assert.assertFalse(result); }
@Test public void testIsLoggable_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final boolean result = fixture.isLoggable(); Assert.assertEquals(false, result); }
@Test public void testIsLoggable_1() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final boolean result = fixture.isLoggable(); Assert.assertEquals(false, result); }
@Test public void testIsLoggable_2() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final boolean result = fixture.isLoggable(); Assert.assertEquals(false, result); }
@Test public void testIsLoggable_3() throws Exception { final FilteredLogger fixture = FilteredLogger.getFilteredLogger(""); final Level logLevel = Level.FINE; final boolean result = fixture.isLoggable(logLevel); Assert.assertFalse(result); }
@Test public void testGetFilteredLogger_1() throws Exception { final String className = ""; final FilteredLogger result = FilteredLogger.getFilteredLogger(className); Assert.assertNotNull(result); Assert.assertEquals(false, result.isLoggable()); }
@Test public void testFilteredLogger_1() throws Exception { final String className = ""; final FilteredLogger result = new FilteredLogger(className); Assert.assertNotNull(result); Assert.assertEquals(false, result.isLoggable()); }
@Test public void testFilteredLogger_1() throws Exception { final String className = ""; final FilteredLogger result = new FilteredLogger(className); Assert.assertNotNull(result); Assert.assertEquals(false, result.isLoggable()); }
@Test public void testGetFilteredLogger_1() throws Exception { final String className = ""; final FilteredLogger result = FilteredLogger.getFilteredLogger(className); Assert.assertNotNull(result); Assert.assertEquals(false, result.isLoggable()); }