Package esmska.data

Enum Gateway.Feature

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Gateway.Feature>
    Enclosing class:
    Gateway

    public static enum Gateway.Feature
    extends java.lang.Enum<Gateway.Feature>
    This enum attributes indicate which various features are supported by a given gateway.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CAPTCHA
      This gateway requires (always or in some circumstances) transcribing a security code (captcha).
      LOGIN
      The gateway supports logging in with username and password, but also works without it.
      LOGIN_ONLY
      The gateway requires login with username and password.
      RECEIPT
      The gateway will send a delivery report upon request.
      SENDER_NUMBER
      The gateway is able to send a message as if it was coming from the specified sender's cell number.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Gateway.Feature valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Gateway.Feature[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LOGIN

        public static final Gateway.Feature LOGIN
        The gateway supports logging in with username and password, but also works without it.
      • LOGIN_ONLY

        public static final Gateway.Feature LOGIN_ONLY
        The gateway requires login with username and password. It means the user must have some credentials assigned from the operator or must register at gateway website prior to using this gateway.
      • SENDER_NUMBER

        public static final Gateway.Feature SENDER_NUMBER
        The gateway is able to send a message as if it was coming from the specified sender's cell number.
      • RECEIPT

        public static final Gateway.Feature RECEIPT
        The gateway will send a delivery report upon request. This usually means sending an SMS back to the sender as soon as the message reaches the recipient.
      • CAPTCHA

        public static final Gateway.Feature CAPTCHA
        This gateway requires (always or in some circumstances) transcribing a security code (captcha).
    • Method Detail

      • values

        public static Gateway.Feature[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Gateway.Feature c : Gateway.Feature.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Gateway.Feature valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null