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
  • Field Details

  • Constructor Details

    • ClientIpActivationStrategy

      public ClientIpActivationStrategy()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.togglz.core.spi.ActivationStrategy
    • getName

      public String getName()
      Specified by:
      getName in interface org.togglz.core.spi.ActivationStrategy
    • isActive

      public boolean isActive(org.togglz.core.repository.FeatureState featureState, org.togglz.core.user.FeatureUser user)
      Specified by:
      isActive in interface org.togglz.core.spi.ActivationStrategy
    • getParameters

      public org.togglz.core.activation.Parameter[] getParameters()
      Specified by:
      getParameters in interface org.togglz.core.spi.ActivationStrategy