public class HttpProxySocket extends DefaultSocket
Constructor and Description |
---|
HttpProxySocket(Phantom phantom,
Proxy proxy,
URI uri,
boolean useSSL)
Constructs the HttpProxySocket.
|
Modifier and Type | Method and Description |
---|---|
void |
createSocket()
Creates a stream socket and connects it to the specified port number
on the named host.
|
close, getInetAddress, getInputStream, getLocalAddress, getMainSocket, getOutputStream, getPlainSocket, setTimeout
public HttpProxySocket(Phantom phantom, Proxy proxy, URI uri, boolean useSSL) throws IOException
proxy
- The HTTP proxy.uri
- The destination URI.useSSL
- Flag for SSL usage.IOException
- For socket/communication/authentication errors.public void createSocket() throws UnknownHostException, IOException
createSocket
in interface SocketInterface
createSocket
in class DefaultSocket
IOException
- if an I/O error occurs when creating the socket.UnknownHostException
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.