org.jasig.cas.client.configuration
Class LegacyConfigurationStrategyImpl

java.lang.Object
  extended by org.jasig.cas.client.configuration.BaseConfigurationStrategy
      extended by org.jasig.cas.client.configuration.LegacyConfigurationStrategyImpl
All Implemented Interfaces:
ConfigurationStrategy

public final class LegacyConfigurationStrategyImpl
extends BaseConfigurationStrategy

Replicates the original behavior by checking the WebXmlConfigurationStrategyImpl first, and then the JndiConfigurationStrategyImpl before using the defaultValue.

Since:
3.4.0
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.client.configuration.BaseConfigurationStrategy
logger
 
Constructor Summary
LegacyConfigurationStrategyImpl()
           
 
Method Summary
protected  String get(ConfigurationKey key)
          Retrieve the String value for this key.
 void init(javax.servlet.FilterConfig filterConfig, Class<? extends javax.servlet.Filter> filterClazz)
          Initializes the strategy.
 
Methods inherited from class org.jasig.cas.client.configuration.BaseConfigurationStrategy
getBoolean, getClass, getInt, getLong, getString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyConfigurationStrategyImpl

public LegacyConfigurationStrategyImpl()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig,
                 Class<? extends javax.servlet.Filter> filterClazz)
Description copied from interface: ConfigurationStrategy
Initializes the strategy. This must be called before calling any of the "get" methods.

Parameters:
filterConfig - the filter configuration object.
filterClazz - the filter

get

protected String get(ConfigurationKey key)
Description copied from class: BaseConfigurationStrategy
Retrieve the String value for this key. Returns null if there is no value.

Specified by:
get in class BaseConfigurationStrategy
Parameters:
key - the key to retrieve. MUST NOT BE NULL.
Returns:
the String if its found, null otherwise.


Copyright © 2006-2015 Jasig. All Rights Reserved.