Package com.lucimber.dbus.message
Class InboundMethodCall
java.lang.Object
com.lucimber.dbus.message.InboundMethodCall
- All Implemented Interfaces:
InboundMessage
,Message
An inbound method call message.
- Since:
- 1.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInboundMethodCall
(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString member, boolean replyExpected) Constructs a new instance with mandatory parameter.InboundMethodCall
(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString member, boolean replyExpected, DBusString iface, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the interface, to which this method belongs.Gets the name of this method.Gets the object path of this method.Gets the payload of this D-Bus message.Gets the sender of this inbound message.Gets the serial number of this D-Bus message.Gets the signature of the payload.boolean
States if the sender expects a reply to this method call or not.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.lucimber.dbus.message.Message
getPayload, getSerial, getSignature
-
Constructor Details
-
InboundMethodCall
public InboundMethodCall(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString member, boolean replyExpected) Constructs a new instance with mandatory parameter.- Parameters:
serial
- the serial numbersender
- the origin of this method callpath
- the object pathmember
- the name of the methodreplyExpected
- states if reply is expected
-
InboundMethodCall
public InboundMethodCall(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString member, boolean replyExpected, DBusString iface, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter.- Parameters:
serial
- the serial numbersender
- the origin of this method callpath
- the object pathmember
- the name of the methodreplyExpected
- states if reply is expectediface
- optional; the name of the interfacesignature
- optional; the signature of the message bodypayload
- optional; the message body
-
-
Method Details
-
getSender
Description copied from interface:InboundMessage
Gets the sender of this inbound message.- Specified by:
getSender
in interfaceInboundMessage
- Returns:
- a
DBusString
-
isReplyExpected
public boolean isReplyExpected()States if the sender expects a reply to this method call or not.- Returns:
TRUE
if reply is expected,FALSE
otherwise.
-
toString
-
getObjectPath
Gets the object path of this method.- Returns:
- an
DBusObjectPath
-
getMember
Gets the name of this method.- Returns:
- a
DBusString
-
getInterfaceName
Gets the name of the interface, to which this method belongs.- Returns:
- a
DBusString
-
getSerial
Description copied from interface:Message
Gets the serial number of this D-Bus message.- Specified by:
getSerial
in interfaceMessage
- Returns:
- an
DBusUInt32
-
getPayload
Description copied from interface:Message
Gets the payload of this D-Bus message.- Specified by:
getPayload
in interfaceMessage
- Returns:
- a
List
ofDBusType
s.
-
getSignature
Description copied from interface:Message
Gets the signature of the payload.- Specified by:
getSignature
in interfaceMessage
- Returns:
- an
Optional
ofDBusSignature
-