1 18 package org.apache.activemq.transport.xmpp; 19 20 import org.apache.activemq.transport.tcp.TcpTransportServer; 21 import org.apache.activemq.transport.tcp.TcpTransportFactory; 22 import org.apache.activemq.transport.Transport; 23 import org.apache.activemq.wireformat.WireFormat; 24 25 import javax.net.ServerSocketFactory; 26 import java.net.URI ; 27 import java.net.URISyntaxException ; 28 import java.net.Socket ; 29 import java.io.IOException ; 30 31 34 public class XmppTransportServer extends TcpTransportServer { 35 36 public XmppTransportServer(TcpTransportFactory transportFactory, URI location, ServerSocketFactory serverSocketFactory) throws IOException , URISyntaxException { 37 super(transportFactory, location, serverSocketFactory); 38 } 39 40 @Override 41 protected Transport createTransport(Socket socket, WireFormat format) throws IOException { 42 return new XmppTransport(format, socket); 43 } 44 } 45 | Popular Tags |