Package jade.imtp.leap.nio

Source Code of jade.imtp.leap.nio.NIOHTTPSPeer

package jade.imtp.leap.nio;

//#J2ME_EXCLUDE_FILE

import jade.imtp.leap.JICP.Connection;
import jade.imtp.leap.JICP.ConnectionFactory;
import jade.imtp.leap.TransportProtocol;
import jade.imtp.leap.http.HTTPSProtocol;
import jade.mtp.TransportAddress;
import java.io.IOException;
import java.net.Socket;

/**
*
* @author Eduard Drenth: Logica, 12-jul-2009
*
*/
public class NIOHTTPSPeer  extends NIOHTTPPeer {

    public ConnectionFactory getConnectionFactory() {
        return new ConnectionFactory() {

            public Connection createConnection(Socket s) {
                return new NIOHTTPSConnection();
            }

            public Connection createConnection(TransportAddress ta) throws IOException {
                return new NIOHTTPSConnection();
            }
        };
    }

    public TransportProtocol getProtocol() {
        return HTTPSProtocol.getInstance();
    }

}
TOP

Related Classes of jade.imtp.leap.nio.NIOHTTPSPeer

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.