/** * Creates an unconnected socket. * * @return unconnected socket * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket() throws IOException { return initSSLSocket((SSLSocket) factory.createSocket()); }
/** * Creates an unconnected socket. * * @return unconnected socket * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket() throws IOException { return initSSLSocket((SSLSocket) factory.createSocket()); }
/** * Creates an unconnected socket. * * @return unconnected socket * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket() throws IOException { return initSSLSocket((SSLSocket) factory.createSocket()); }
/** * Creates a socket and connects it to the specified port number at the specified address. * * @param host server hostname * @param port server port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final String host, final int port) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port)); }
/** * Creates a socket and connects it to the specified port number at the specified address. * * @param host server hostname * @param port server port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final String host, final int port) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port)); }
/** * Creates a socket and connects it to the specified port number at the specified address. * * @param host server hostname * @param port server port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final String host, final int port) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port)); }
/** * Creates a socket and connects it to the specified port number at the specified address. * * @param host server hostname * @param port server port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final InetAddress host, final int port) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port)); }
/** * Creates a socket and connects it to the specified port number at the specified address. * * @param host server hostname * @param port server port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final InetAddress host, final int port) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port)); }
/** * Returns a socket layered over an existing socket connected to the named host, at the given port. * * @param socket existing socket * @param host server hostname * @param port server port * @param autoClose close the underlying socket when this socket is closed * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final Socket socket, final String host, final int port, final boolean autoClose) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(socket, host, port, autoClose)); }
/** * Creates a socket and connects it to the specified port number at the specified address. * * @param host server hostname * @param port server port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final InetAddress host, final int port) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port)); }
/** * Returns a socket layered over an existing socket connected to the named host, at the given port. * * @param socket existing socket * @param host server hostname * @param port server port * @param autoClose close the underlying socket when this socket is closed * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final Socket socket, final String host, final int port, final boolean autoClose) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(socket, host, port, autoClose)); }
/** * Creates a socket and connect it to the specified port number at the specified address. The socket will also be * bound to the supplied local address and port. * * @param host server hostname * @param port server port * @param localHost client hostname * @param localPort client port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final String host, final int port, final InetAddress localHost, final int localPort) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port, localHost, localPort)); }
/** * Creates a socket and connect it to the specified port number at the specified address. The socket will also be * bound to the supplied local address and port. * * @param address server hostname * @param port server port * @param localAddress client hostname * @param localPort client port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket( final InetAddress address, final int port, final InetAddress localAddress, final int localPort) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(address, port, localAddress, localPort)); }
/** * Returns a socket layered over an existing socket connected to the named host, at the given port. * * @param socket existing socket * @param host server hostname * @param port server port * @param autoClose close the underlying socket when this socket is closed * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final Socket socket, final String host, final int port, final boolean autoClose) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(socket, host, port, autoClose)); }
/** * Creates a socket and connect it to the specified port number at the specified address. The socket will also be * bound to the supplied local address and port. * * @param host server hostname * @param port server port * @param localHost client hostname * @param localPort client port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final String host, final int port, final InetAddress localHost, final int localPort) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port, localHost, localPort)); }
/** * Creates a socket and connect it to the specified port number at the specified address. The socket will also be * bound to the supplied local address and port. * * @param host server hostname * @param port server port * @param localHost client hostname * @param localPort client port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket(final String host, final int port, final InetAddress localHost, final int localPort) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(host, port, localHost, localPort)); }
/** * Creates a socket and connect it to the specified port number at the specified address. The socket will also be * bound to the supplied local address and port. * * @param address server hostname * @param port server port * @param localAddress client hostname * @param localPort client port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket( final InetAddress address, final int port, final InetAddress localAddress, final int localPort) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(address, port, localAddress, localPort)); }
/** * Creates a socket and connect it to the specified port number at the specified address. The socket will also be * bound to the supplied local address and port. * * @param address server hostname * @param port server port * @param localAddress client hostname * @param localPort client port * * @return socket connected to the specified host and port * * @throws IOException if an I/O error occurs when creating the socket */ @Override public Socket createSocket( final InetAddress address, final int port, final InetAddress localAddress, final int localPort) throws IOException { return initSSLSocket((SSLSocket) factory.createSocket(address, port, localAddress, localPort)); }