*/
public synchronized void setEnabled(final boolean enabled) {
this.enabled = enabled;
- final String SERVICE_ENABLED_INFO_MESSAGE = "Setting ServiceProxy enabled to " + enabled;
- LOG.info(SERVICE_ENABLED_INFO_MESSAGE);
+ LOG.info("Setting ServiceProxy enabled to {}", enabled);
// check for null because of non-determinism in bundle load
if (filter != null) {
filter.setEnabled(enabled);
* delivering debug information; to enable these debug statements, please issue
* the following in the karaf shell:
*
- * <code>log:set debug org.opendaylight.aaa.shiro.filters.AAAFilter</code>
+ * <code>log:set DEBUG org.opendaylight.aaa.shiro.filters.AAAFilter</code>
*
* @author Ryan Goulding (ryandgoulding@gmail.com)
* @see <code>javax.servlet.Filter</code>
private static final Logger LOG = LoggerFactory.getLogger(AAAFilter.class);
public AAAFilter() {
- super();
- final String DEBUG_MESSAGE = "Creating the AAAFilter";
- LOG.debug(DEBUG_MESSAGE);
+ LOG.debug("Creating the AAAFilter");
}
/*
@Override
public void init() throws Exception {
super.init();
- final String DEBUG_MESSAGE = "Initializing the AAAFilter";
- LOG.debug(DEBUG_MESSAGE);
+ LOG.debug("Initializing the AAAFilter");
// sets the filter to the startup value. Because of non-determinism in
// bundle loading, this passes an instance of itself along so that if
// the
* org.apache.shiro.web.servlet.OncePerRequestFilter#setEnabled(boolean)
*/
@Override
- public void setEnabled(boolean enabled) {
+ public void setEnabled(final boolean enabled) {
super.setEnabled(enabled);
- final String DEBUG_MESSAGE = "Setting AAAFilter enabled to " + enabled;
- LOG.debug(DEBUG_MESSAGE);
+ LOG.debug("Setting AAAFilter enabled to {}", enabled);
}
}
* This class is also responsible for delivering debug information; to enable these
* debug statements, please issue the following in the karaf shell:
*
- * <code>log:set debug org.opendaylight.aaa.shiro.filters.AAAShiroFilter</code>
+ * <code>log:set DEBUG org.opendaylight.aaa.shiro.filters.AAAShiroFilter</code>
*
* @author Ryan Goulding (ryandgoulding@gmail.com)
* @see <code>javax.servlet.Filter</code>
@Override
public void onSuccess(final AuthenticationToken authenticationToken, final AuthenticationInfo authenticationInfo) {
if (LOG.isDebugEnabled()) {
- final String successMessage = AuthenticationTokenUtils.generateSuccessfulAuthenticationMessage(authenticationToken);
- LOG.debug(successMessage);
+ LOG.debug(AuthenticationTokenUtils.generateSuccessfulAuthenticationMessage(authenticationToken));
}
}
@Override
public void onFailure(final AuthenticationToken authenticationToken, final AuthenticationException e) {
if (LOG.isDebugEnabled()) {
- final String failureMessage = AuthenticationTokenUtils.generateUnsuccessfulAuthenticationMessage(authenticationToken);
- LOG.debug(failureMessage);
+ LOG.debug(AuthenticationTokenUtils.generateUnsuccessfulAuthenticationMessage(authenticationToken));
}
}
protected static final String OPTIONS_HEADER = "OPTIONS";
public ODLHttpAuthenticationFilter() {
- super();
LOG.info("Creating the ODLHttpAuthenticationFilter");
}
* Adds debugging information surrounding creation of ODLJndiLdapRealm
*/
public ODLJndiLdapRealm() {
- super();
- final String DEBUG_MESSAGE = "Creating ODLJndiLdapRealm";
- LOG.debug(DEBUG_MESSAGE);
+ LOG.debug("Creating ODLJndiLdapRealm");
}
/*
* Adds debugging information surrounding creation of ODLJndiLdapRealm
*/
public ODLJndiLdapRealmAuthNOnly() {
- super();
LOG.debug("Creating ODLJndiLdapRealmAuthNOnly");
}
private static final Logger LOG = LoggerFactory.getLogger(TokenAuthRealm.class);
public TokenAuthRealm() {
- super();
super.setName(TOKEN_AUTH_REALM_DEFAULT_NAME);
}