Package org.togglz.servlet.activation
Class ServerNameActivationStrategy
- java.lang.Object
-
- org.togglz.servlet.activation.ServerNameActivationStrategy
-
- All Implemented Interfaces:
ActivationStrategy
public class ServerNameActivationStrategy extends Object implements ActivationStrategy
Activation strategy that will use the server name used in the request to decide if the feature is active or not. This strategy can be useful when given service instance is available through two different virtual host names (like www.example.com and beta.example.com) each with different features enabled.- Author:
- Marcin ZajÄ…czkowski, 2014-04-28
-
-
Constructor Summary
Constructors Constructor Description ServerNameActivationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()StringgetName()Parameter[]getParameters()booleanisActive(FeatureState featureState, FeatureUser user)
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceActivationStrategy
-
getName
public String getName()
- Specified by:
getNamein interfaceActivationStrategy
-
isActive
public boolean isActive(FeatureState featureState, FeatureUser user)
- Specified by:
isActivein interfaceActivationStrategy
-
getParameters
public Parameter[] getParameters()
- Specified by:
getParametersin interfaceActivationStrategy
-
-