org.jasig.cas.client.configuration
Class WebXmlConfigurationStrategyImpl

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

public final class WebXmlConfigurationStrategyImpl
extends BaseConfigurationStrategy

Implementation of the ConfigurationStrategy that first checks the FilterConfig and then checks the ServletContext, ultimately falling back to the defaultValue.

Since:
3.4.0
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.client.configuration.BaseConfigurationStrategy
logger
 
Constructor Summary
WebXmlConfigurationStrategyImpl()
           
 
Method Summary
protected  String get(ConfigurationKey configurationKey)
          Retrieve the String value for this key.
 void init(javax.servlet.FilterConfig filterConfig, Class<? extends javax.servlet.Filter> clazz)
          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

WebXmlConfigurationStrategyImpl

public WebXmlConfigurationStrategyImpl()
Method Detail

get

protected String get(ConfigurationKey configurationKey)
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:
configurationKey - the key to retrieve. MUST NOT BE NULL.
Returns:
the String if its found, null otherwise.

init

public void init(javax.servlet.FilterConfig filterConfig,
                 Class<? extends javax.servlet.Filter> clazz)
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.
clazz - the filter


Copyright © 2006-2015 Jasig. All Rights Reserved.