Package org.togglz.servlet.activation
Class ClientIpActivationStrategy
java.lang.Object
org.togglz.servlet.activation.ClientIpActivationStrategy
- All Implemented Interfaces:
org.togglz.core.spi.ActivationStrategy
public class ClientIpActivationStrategy
extends Object
implements org.togglz.core.spi.ActivationStrategy
Activation strategy that will use the IP address of the client to decide if a feature is active or not.
- Author:
- Christian Kaltepoth
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ID
- See Also:
-
PARAM_IPS
- See Also:
-
-
Constructor Details
-
ClientIpActivationStrategy
public ClientIpActivationStrategy()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.togglz.core.spi.ActivationStrategy
-
getName
- Specified by:
getNamein interfaceorg.togglz.core.spi.ActivationStrategy
-
isActive
public boolean isActive(org.togglz.core.repository.FeatureState featureState, org.togglz.core.user.FeatureUser user) - Specified by:
isActivein interfaceorg.togglz.core.spi.ActivationStrategy
-
getParameters
public org.togglz.core.activation.Parameter[] getParameters()- Specified by:
getParametersin interfaceorg.togglz.core.spi.ActivationStrategy
-