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
IOException
public static <A> void writeResponse(ProtocolUtils.ResponseWriter writer, ManagementRequestContext<A> context, ManagementResponseHeader header) throws IOException
IOException
public static void expectHeader(InputStream input, int expected) throws IOException
IOException
public static void expectHeader(DataInput input, int expected) throws IOException
IOException
public static void expectHeader(byte actual, int expected) throws IOException
IOException
public static int readInt(InputStream in) throws IOException
IOException
public static void writeInt(OutputStream out, int v) throws IOException
IOException
public static byte readByte(InputStream stream) throws IOException
IOException
Copyright © 2023 JBoss by Red Hat. All rights reserved.