Package org.jboss.as.protocol

Examples of org.jboss.as.protocol.MessageHandler


public abstract class ManagementHeaderMessageHandler extends AbstractMessageHandler {

    public void handle(Connection connection, InputStream dataStream) throws IOException {
        final int workingVersion;
        final ManagementRequestHeader requestHeader;
        final MessageHandler handler;
        ByteDataInput input = null;
        try {
            input = new SimpleByteDataInput(dataStream);

            // Start by reading the request header
View Full Code Here


            throw new IllegalArgumentException("authCode is null");
        }
        if (messageHandler == null) {
            throw new IllegalArgumentException("messageHandler is null");
        }
        configuration.setMessageHandler(new MessageHandler() {
            public void handleMessage(final Connection connection, final InputStream dataStream) throws IOException {
                final ProcessControllerClient client = (ProcessControllerClient) connection.getAttachment();
                final int cmd = readUnsignedByte(dataStream);
                switch (cmd) {
                    case Protocol.PROCESS_ADDED: {
View Full Code Here

    /** {@inheritDoc} */
    @Override
    public void start(StartContext context) throws StartException {
        final ModelController modelController = modelControllerValue.getValue();
        final MessageHandler initialMessageHandler = getInitialMessageHandler();
        this.handler = createOperationHandler(modelController, initialMessageHandler);
    }
View Full Code Here

            throw new IllegalArgumentException("authCode is null");
        }
        if (messageHandler == null) {
            throw new IllegalArgumentException("messageHandler is null");
        }
        configuration.setMessageHandler(new MessageHandler() {
            public void handleMessage(final Connection connection, final InputStream dataStream) throws IOException {
                final ProcessControllerClient client = (ProcessControllerClient) connection.getAttachment();
                final int cmd = readUnsignedByte(dataStream);
                switch (cmd) {
                    case Protocol.PROCESS_ADDED: {
View Full Code Here

            throw new IllegalArgumentException("authCode is null");
        }
        if (messageHandler == null) {
            throw new IllegalArgumentException("messageHandler is null");
        }
        configuration.setMessageHandler(new MessageHandler() {
            public void handleMessage(final Connection connection, final InputStream dataStream) throws IOException {
                final ProcessManagerClient client = (ProcessManagerClient) connection.getAttachment();
                final int cmd = readUnsignedByte(dataStream);
                switch (cmd) {
                    case Protocol.PROCESS_ADDED: {
View Full Code Here

TOP

Related Classes of org.jboss.as.protocol.MessageHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.