MessageNotify, MessageResponse, MessageSearchpublic abstract class Message extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static long |
BOOT_ID |
|
static InetAddress |
MULTICAST_ADDRESS |
|
static int |
MULTICAST_PORT |
|
static String |
ROOT_DEVICE_IDENTIFIER |
|
MessageType |
type |
| Modifier | Constructor | Description |
|---|---|---|
protected |
Message(MessageType type) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
get() |
|
static Message |
parse(byte[] message) |
|
static Message |
parse(String message) |
|
protected abstract StringBuilder |
printFields() |
|
abstract boolean |
rootDevice() |
Specify whether this message contains information about the root device/requests
information about the root device
|
public static final InetAddress MULTICAST_ADDRESS
public static final int MULTICAST_PORT
public static final String ROOT_DEVICE_IDENTIFIER
public final MessageType type
public static final long BOOT_ID
protected Message(MessageType type)
protected abstract StringBuilder printFields()
public String get()
public static Message parse(byte[] message)
public abstract boolean rootDevice()
public static Message parse(String message) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2017–2019. All rights reserved.