Package org.jboss.as.protocol.mgmt
Class ProtocolUtils
java.lang.Object
org.jboss.as.protocol.mgmt.ProtocolUtils
Utility class providing methods for common management tasks.
- Author:
- John Bailey
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A> ManagementRequestContext.AsyncTask<A>static voidexpectHeader(byte actual, int expected) static voidexpectHeader(DataInput input, int expected) static voidexpectHeader(InputStream input, int expected) static bytereadByte(InputStream stream) static intreadInt(InputStream in) static FlushableDataOutputstatic voidwriteInt(OutputStream out, int v) static <A> voidwriteResponse(ProtocolUtils.ResponseWriter writer, ManagementRequestContext<A> context) static <A> voidwriteResponse(ProtocolUtils.ResponseWriter writer, ManagementRequestContext<A> context, ManagementResponseHeader header)
-
Constructor Details
-
ProtocolUtils
public ProtocolUtils()
-
-
Method Details
-
wrapAsDataOutput
-
emptyResponseTask
-
writeResponse
public static <A> void writeResponse(ProtocolUtils.ResponseWriter writer, ManagementRequestContext<A> context) throws IOException - Throws:
IOException
-
writeResponse
public static <A> void writeResponse(ProtocolUtils.ResponseWriter writer, ManagementRequestContext<A> context, ManagementResponseHeader header) throws IOException - Throws:
IOException
-
expectHeader
- Throws:
IOException
-
expectHeader
- Throws:
IOException
-
expectHeader
- Throws:
IOException
-
readInt
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
readByte
- Throws:
IOException
-