![JAR search and dependency download from the Maven repository](/logo.png)
com.ociweb.pronghorn.network.BasicClientConnectionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Pronghorn Show documentation
Show all versions of Pronghorn Show documentation
Primary dependency for any project using the Pronghorn framework
The newest version!
package com.ociweb.pronghorn.network;
import java.io.IOException;
import javax.net.ssl.SSLEngine;
public class BasicClientConnectionFactory extends AbstractClientConnectionFactory {
public final static BasicClientConnectionFactory instance = new BasicClientConnectionFactory();
public ClientConnection newClientConnection(ClientCoordinator ccm, CharSequence host, int port,
int sessionId, long connectionId, int pipeIdx, int hostId, int structureId)
throws IOException {
SSLEngine engine = ccm.isTLS ?
ccm.engineFactory.createSSLEngine(host instanceof String ? (String)host : host.toString(), port)
:null;
return new ClientConnection(engine, host, hostId, port, sessionId, pipeIdx,
connectionId, structureId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy