Class StaticService

  • All Implemented Interfaces:
    ServiceMBean

    public class StaticService
    extends Object
    implements ServiceMBean
    This class represents a (static) service. It can be spring-loaded with a set of Endpoint Strings, which are compiled into a collection of (reg-ex) Patterns.
    • Constructor Detail

      • StaticService

        public StaticService()
    • Method Detail

      • isAddressInEndpoints

        public boolean isAddressInEndpoints​(String address)
        Return true if the supplied address corresponds to a known address for this service
        Specified by:
        isAddressInEndpoints in interface ServiceMBean
      • getTokenType

        public String getTokenType()
        Get the default Token Type to be issued for this Service
        Specified by:
        getTokenType in interface ServiceMBean
      • setTokenType

        public void setTokenType​(String tokenType)
        Set the default Token Type to be issued for this Service
        Specified by:
        setTokenType in interface ServiceMBean
      • getKeyType

        public String getKeyType()
        Get the default Key Type to be issued for this Service
        Specified by:
        getKeyType in interface ServiceMBean
      • setKeyType

        public void setKeyType​(String keyType)
        Set the default Key Type to be issued for this Service
        Specified by:
        setKeyType in interface ServiceMBean
      • setEndpoints

        public void setEndpoints​(List<String> endpoints)
        Set the list of endpoint addresses that correspond to this service
        Specified by:
        setEndpoints in interface ServiceMBean
      • getMaxAddressLength

        public int getMaxAddressLength()
        Get the maximum allowable address length to compare against the addresses set in setEndpoints
        Returns:
        the maximum allowable address length
      • setMaxAddressLength

        public void setMaxAddressLength​(int maxAddressLength)
        Set the maximum allowable address length to compare against the addresses set in setEndpoints
        Parameters:
        maxAddressLength - the maximum allowable address length