Package org.togglz.servlet.activation
Class ServerNameActivationStrategy
java.lang.Object
org.togglz.servlet.activation.ServerNameActivationStrategy
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
boolean
isActive
(FeatureState featureState, FeatureUser user)
-
Constructor Details
-
ServerNameActivationStrategy
public ServerNameActivationStrategy()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceActivationStrategy
-
getName
- Specified by:
getName
in interfaceActivationStrategy
-
isActive
- Specified by:
isActive
in interfaceActivationStrategy
-
getParameters
- Specified by:
getParameters
in interfaceActivationStrategy
-