Package com.lucimber.dbus.message
Class OutboundError
java.lang.Object
com.lucimber.dbus.message.OutboundError
- All Implemented Interfaces:
Message,OutboundMessage,OutboundReply
An outbound error message.
- Since:
- 1.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOutboundError(DBusUInt32 serial, DBusUInt32 replySerial, DBusString errorName, DBusString dst, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter. -
Method Summary
Modifier and TypeMethodDescriptionGets the unique name of the destination.Returns the name of this error.Gets the payload of this D-Bus message.Gets the serial number of the message this message is a reply to.Gets the serial number of this D-Bus message.Gets the signature of the payload.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.lucimber.dbus.message.Message
getPayload, getSerial, getSignatureMethods inherited from interface com.lucimber.dbus.message.OutboundReply
getReplySerial
-
Constructor Details
-
OutboundError
public OutboundError(DBusUInt32 serial, DBusUInt32 replySerial, DBusString errorName, DBusString dst, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter.- Parameters:
serial- the serial numberreplySerial- the reply serial numbererrorName- the name of this errordst- optional; the destination of this errorsignature- optional; the signature of the message bodypayload- optional; the message body
-
-
Method Details
-
getDestination
Description copied from interface:OutboundMessageGets the unique name of the destination.- Specified by:
getDestinationin interfaceOutboundMessage- Returns:
- an
OptionalofDBusString
-
getErrorName
Returns the name of this error.- Returns:
- a
DBusString
-
toString
-
getReplySerial
Gets the serial number of the message this message is a reply to.- Returns:
- The serial number as an
DBusUInt32.
-
getSerial
Description copied from interface:MessageGets the serial number of this D-Bus message.- Specified by:
getSerialin interfaceMessage- Returns:
- an
DBusUInt32
-
getPayload
Description copied from interface:MessageGets the payload of this D-Bus message.- Specified by:
getPayloadin interfaceMessage- Returns:
- a
ListofDBusTypes.
-
getSignature
Description copied from interface:MessageGets the signature of the payload.- Specified by:
getSignaturein interfaceMessage- Returns:
- an
OptionalofDBusSignature
-