ice.net
Interface HttpURLConnectionCallback


public interface HttpURLConnectionCallback

The HttpURLConnectionCallback interface defines a callback mechanism for the HttpURLConnection class.

Since:
1.6.0
Version:
1.6.0
Author:
Jack van Ooststroom
See Also:
HttpURLConnection, HttpURLConnection.getHttpURLConnectionCallback(), HttpURLConnection.setHttpURLConnectionCallback(HttpURLConnectionCallback)

Method Summary
 SimpleSocket createSimpleSocket(InetAddress inetAddress, int port)
          Creates a SimpleSocket with the specified inetAddress and port.
 boolean useIp()
          Checks to see if the use of the IP (Internet Protocol) is allowed.
 

Method Detail

createSimpleSocket

public SimpleSocket createSimpleSocket(InetAddress inetAddress,
                                       int port)

Creates a SimpleSocket with the specified inetAddress and port.

Parameters:
inetAddress - the Inet address of the SimpleSocket to be created.
port - the port of the SimpleSocket to be created.
Returns:
the created SimpleSocket.
Since:
1.6.0

useIp

public boolean useIp()

Checks to see if the use of the IP (Internet Protocol) is allowed.

Returns:
true if the use the IP is allowed, false if not.
Since:
1.6.0