Package org.springframework.integration.ip.tcp.connection

Examples of org.springframework.integration.ip.tcp.connection.TcpConnection


        assertEquals("Mismatched label", op.getLabel() + " " + uri, desc.getLabel());
        return desc;
    }

    private Operation assertConnectionOperation(ConnectionFactory factory) throws Exception {
        TcpConnection conn = factory.getConnection();
        Operation op = assertConnectionOperation(conn);
        assertEquals("Mismatched label", conn.getClass().getSimpleName() + "#getConnection", op.getLabel());
        return op;
    }
View Full Code Here


        if (!(returnValue instanceof TcpConnection)) {
            return; // not expecting anything else, but let's no belabor the
            // point...
        }

        TcpConnection conn = (TcpConnection) returnValue;
        String host = conn.getHostAddress();
        int port = conn.getPort();
        op.put(HOST_ADDRESS_ATTR, host)
                .put(PORT_ATTR, port)
                .put(OperationFields.URI, "tcp://" + host + ":" + port)
                .putAnyNonEmpty(CONNID_ATTR, conn.getConnectionId())
                .put(SERVER_ATTR, conn.isServer());
    }
View Full Code Here

TOP

Related Classes of org.springframework.integration.ip.tcp.connection.TcpConnection

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.