FileDocCategorySizeDatePackage
LayeredSocketFactory.javaAPI DocAndroid 1.5 API2706Wed May 06 22:41:10 BST 2009org.apache.http.conn.scheme

LayeredSocketFactory

public interface LayeredSocketFactory implements SocketFactory
A {@link SocketFactory SocketFactory} for layered sockets (SSL/TLS). See there for things to consider when implementing a socket factory.
author
Michael Becke
author
Mike Bowler
since
4.0

Fields Summary
Constructors Summary
Methods Summary
public java.net.SocketcreateSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)
Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.

param
socket the existing socket
param
host the host name/IP
param
port the port on the host
param
autoClose a flag for closing the underling socket when the created socket is closed
return
Socket a new socket
throws
IOException if an I/O error occurs while creating the socket
throws
UnknownHostException if the IP address of the host cannot be determined