Enum Class MessageFlag

java.lang.Object
java.lang.Enum<MessageFlag>
com.lucimber.dbus.message.MessageFlag
All Implemented Interfaces:
Serializable, Comparable<MessageFlag>, Constable

public enum MessageFlag extends Enum<MessageFlag>
D-Bus message flags as defined by the D-Bus wire protocol.

Flags correspond to individual bits in the message header's "flags" byte.

Since:
1.0
See Also:
  • Enum Constant Details

    • NO_REPLY_EXPECTED

      public static final MessageFlag NO_REPLY_EXPECTED
      No reply is expected for this method call message.

      Bit mask: 0x01

    • NO_AUTO_START

      public static final MessageFlag NO_AUTO_START
      Do not automatically start the destination service if not already running.

      Bit mask: 0x02

    • ALLOW_INTERACTIVE_AUTHORIZATION

      public static final MessageFlag ALLOW_INTERACTIVE_AUTHORIZATION
      Allow the client to interactively prompt the user for authentication credentials.

      Bit mask: 0x04

  • Method Details

    • values

      public static MessageFlag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageFlag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • code

      public byte code()
      Returns the bit mask value for this flag.
      Returns:
      the flag's bit mask (0x01, 0x02, etc.)