public class ManagementResponseHeader extends ManagementProtocolHeader
ManagementProtocolHeader.| Constructor and Description |
|---|
ManagementResponseHeader(int version,
int responseId,
String error)
Construct an instance with the protocol version for the header.
|
| Modifier and Type | Method and Description |
|---|---|
static ManagementResponseHeader |
create(ManagementProtocolHeader header) |
static ManagementResponseHeader |
create(ManagementProtocolHeader header,
int responseId) |
static ManagementResponseHeader |
create(ManagementRequestHeader header) |
static ManagementResponseHeader |
create(ManagementRequestHeader header,
Throwable error) |
String |
getError()
Gets any error that happened on the server trying to initialize the request
|
int |
getResponseId()
The response id.
|
byte |
getType()
The type
|
boolean |
isFailed()
Whether this is an error response.
|
void |
read(DataInput input) |
void |
write(DataOutput output)
Write the header information to the provided
DataOutput. |
cast, getVersion, parse, validateSignaturepublic ManagementResponseHeader(int version,
int responseId,
String error)
version - The protocol versionresponseId - The response iderror - an optional error descriptionpublic void read(DataInput input) throws IOException
IOExceptionpublic void write(DataOutput output) throws IOException
ManagementProtocolHeaderDataOutput.write in class ManagementProtocolHeaderoutput - The output to write toIOException - If any problems occur writing to the outputpublic boolean isFailed()
true if the request failed, false otherwisepublic int getResponseId()
public String getError()
public byte getType()
ManagementProtocolHeadergetType in class ManagementProtocolHeaderpublic static ManagementResponseHeader create(ManagementProtocolHeader header)
public static ManagementResponseHeader create(ManagementRequestHeader header)
public static ManagementResponseHeader create(ManagementRequestHeader header, Throwable error)
public static ManagementResponseHeader create(ManagementProtocolHeader header, int responseId)
Copyright © 2021 JBoss by Red Hat. All rights reserved.