public final class ProtocolUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProtocolUtils.ResponseWriter |
| Constructor and Description |
|---|
ProtocolUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <A> ManagementRequestContext.AsyncTask<A> |
emptyResponseTask() |
static void |
expectHeader(byte actual,
int expected) |
static void |
expectHeader(DataInput input,
int expected) |
static void |
expectHeader(InputStream input,
int expected) |
static byte |
readByte(InputStream stream) |
static int |
readInt(InputStream in) |
static FlushableDataOutput |
wrapAsDataOutput(OutputStream os) |
static void |
writeInt(OutputStream out,
int v) |
static <A> void |
writeResponse(ProtocolUtils.ResponseWriter writer,
ManagementRequestContext<A> context) |
static <A> void |
writeResponse(ProtocolUtils.ResponseWriter writer,
ManagementRequestContext<A> context,
ManagementResponseHeader header) |
public static FlushableDataOutput wrapAsDataOutput(OutputStream os)
public static <A> ManagementRequestContext.AsyncTask<A> emptyResponseTask()
public static <A> void writeResponse(ProtocolUtils.ResponseWriter writer, ManagementRequestContext<A> context) throws IOException
IOExceptionpublic static <A> void writeResponse(ProtocolUtils.ResponseWriter writer, ManagementRequestContext<A> context, ManagementResponseHeader header) throws IOException
IOExceptionpublic static void expectHeader(InputStream input, int expected) throws IOException
IOExceptionpublic static void expectHeader(DataInput input, int expected) throws IOException
IOExceptionpublic static void expectHeader(byte actual,
int expected)
throws IOException
IOExceptionpublic static int readInt(InputStream in) throws IOException
IOExceptionpublic static void writeInt(OutputStream out, int v) throws IOException
IOExceptionpublic static byte readByte(InputStream stream) throws IOException
IOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.