Examples of TcpTransportServer


Examples of org.apache.activemq.transport.tcp.TcpTransportServer

    protected String getDefaultWireFormatType() {
        return "mqtt";
    }

    protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
        TcpTransportServer result =  new TcpTransportServer(this, location, serverSocketFactory);
        result.setAllowLinkStealing(true);
        return result;
    }
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransportServer

    SSLContext context;

    @Override
    protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
        TcpTransportServer result = new TcpTransportServer(this, location, serverSocketFactory) {
            protected Transport createTransport(Socket socket, WireFormat format) throws IOException {
                MQTTNIOSSLTransport transport = new MQTTNIOSSLTransport(format, socket);
                if (context != null) {
                    transport.setSslContext(context);
                }
                return transport;
            }
        };
        result.setAllowLinkStealing(true);
        return result;
    }
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransportServer

    protected String getDefaultWireFormatType() {
        return "mqtt";
    }

    protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
        TcpTransportServer result = new TcpTransportServer(this, location, serverSocketFactory) {
            protected Transport createTransport(Socket socket, WireFormat format) throws IOException {
                return new MQTTNIOTransport(format, socket);
            }
        };
        result.setAllowLinkStealing(true);
        return result;
    }
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransportServer

        return "amqp";
    }

    @Override
    protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
        return new TcpTransportServer(this, location, serverSocketFactory) {
            @Override
            protected Transport createTransport(Socket socket, WireFormat format) throws IOException {
                return new AmqpNioTransport(format, socket);
            }
        };
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransportServer

import org.apache.activemq.wireformat.WireFormat;

public class NIOTransportFactory extends TcpTransportFactory {

    protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
        return new TcpTransportServer(this, location, serverSocketFactory) {
            protected Transport createTransport(Socket socket, WireFormat format) throws IOException {
                return new NIOTransport(format, socket);
            }
        };
    }
View Full Code Here

Examples of org.codehaus.stomp.tcp.TcpTransportServer

    protected void doStop() throws Exception {
        getTcpServer().stop();
    }

    protected TcpTransportServer createTcpServer() throws IOException, URISyntaxException {
        return new TcpTransportServer(this, getLocation(), getServerSocketFactory());
    }
View Full Code Here

Examples of org.fusesource.hawtdispatch.transport.TcpTransportServer

    public TransportServer bind(String location) throws Exception {

        URI uri = new URI(location);
        Map<String, String> options = new HashMap<String, String>(URISupport.parseParamters(uri));

        TcpTransportServer server = createTcpTransportServer(uri, options);
        if (server == null) return null;

        Map<String, String> copy = new HashMap<String, String>(options);
        IntrospectionSupport.setProperties(server, options);
        return server;
View Full Code Here

Examples of org.fusesource.hawtdispatch.transport.TcpTransportServer

    protected TcpTransportServer createTcpTransportServer(final URI location, final Map<String, String> options) throws IOException, URISyntaxException, Exception {
        if( !location.getScheme().equals("tcp") ) {
            return null;
        }

        return new TcpTransportServer(location) {
            @Override
            protected TcpTransport createTransport() {
                TcpTransport transport = super.createTransport();
                IntrospectionSupport.setProperties(transport, options);
                return transport;
View Full Code Here

Examples of org.fusesource.hawtdispatch.transport.TcpTransportServer

    public TransportServer bind(String location) throws Exception {

        URI uri = new URI(location);
        Map<String, String> options = new HashMap<String, String>(URISupport.parseParamters(uri));

        TcpTransportServer server = createTcpTransportServer(uri, options);
        if (server == null) return null;

        Map<String, String> copy = new HashMap<String, String>(options);
        IntrospectionSupport.setProperties(server, new HashMap(options));
        return server;
View Full Code Here

Examples of org.fusesource.hawtdispatch.transport.TcpTransportServer

    protected TcpTransportServer createTcpTransportServer(final URI location, final Map<String, String> options) throws IOException, URISyntaxException, Exception {
        if( !location.getScheme().equals("tcp") ) {
            return null;
        }

        return new TcpTransportServer(location) {
            @Override
            protected TcpTransport createTransport() {
                TcpTransport transport = super.createTransport();
                IntrospectionSupport.setProperties(transport, new HashMap(options));
                return transport;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.