
org.freedesktop.dbus.messages.MethodCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbus-java-core Show documentation
Show all versions of dbus-java-core Show documentation
Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).
The newest version!
package org.freedesktop.dbus.messages;
import org.freedesktop.dbus.exceptions.DBusException;
import org.freedesktop.dbus.exceptions.MessageFormatException;
import org.freedesktop.dbus.messages.constants.ArgumentType;
import org.freedesktop.dbus.messages.constants.HeaderField;
import org.freedesktop.dbus.messages.constants.MessageType;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
public class MethodCall extends MethodBase {
private static long replyWaitTimeout = Duration.ofSeconds(20).toMillis();
// CHECKSTYLE:OFF
Message reply = null;
// CHECKSTYLE:ON
MethodCall() {
}
protected MethodCall(byte _endianess, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) throws DBusException {
this(_endianess, null, _dest, _path, _iface, _member, _flags, _sig, _args);
}
protected MethodCall(byte _endianess, String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) throws DBusException {
super(_endianess, MessageType.METHOD_CALL, _flags);
if (null == _member || null == _path) {
throw new MessageFormatException("Must specify destination, path and function name to MethodCalls.");
}
Object[] header = getHeader();
header[HeaderField.PATH] = _path;
header[HeaderField.MEMBER] = _member;
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy