Package org.brerp.sped.nfe.util
Class SocketFactoryDinamico
java.lang.Object
org.brerp.sped.nfe.util.SocketFactoryDinamico
- All Implemented Interfaces:
org.apache.commons.httpclient.protocol.ProtocolSocketFactory
public class SocketFactoryDinamico
extends Object
implements org.apache.commons.httpclient.protocol.ProtocolSocketFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSocket
(String host, int port) createSocket
(String host, int port, InetAddress clientHost, int clientPort) createSocket
(String host, int port, InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params) createSocket
(Socket socket, String host, int port, boolean autoClose) void
setFileCacerts
(InputStream inputStreamCacerts, String passwdCacerts) void
setFileCacerts
(String fileCacerts, String passwdCacerts)
-
Constructor Details
-
SocketFactoryDinamico
-
-
Method Details
-
createSocket
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params) throws IOException, UnknownHostException, org.apache.commons.httpclient.ConnectTimeoutException - Specified by:
createSocket
in interfaceorg.apache.commons.httpclient.protocol.ProtocolSocketFactory
- Throws:
IOException
UnknownHostException
org.apache.commons.httpclient.ConnectTimeoutException
-
createSocket
public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException, UnknownHostException - Specified by:
createSocket
in interfaceorg.apache.commons.httpclient.protocol.ProtocolSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
- Specified by:
createSocket
in interfaceorg.apache.commons.httpclient.protocol.ProtocolSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException - Throws:
IOException
UnknownHostException
-
createKeyManagers
-
createTrustManagers
public TrustManager[] createTrustManagers() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException -
setFileCacerts
-
setFileCacerts
-