Package ej.ecom.io

Class Connector


  • public class Connector
    extends Object
    This class defines methods for opening a Connection from an URL. The URL format (which complies with RFC 2396) is on the following format:
     [protocol]:[name](;[param])*
     
    Where:
    • protocol defines the connection protocol (for example: comm, http)
    • name is the name of the connection to open (for example: /dev/ttyS0, 192.168.1.1)
    • param is a connection specific parameter

    The factory corresponding to the extracted protocol is dynamically bound and its ConnectionFactory.open(java.lang.String, int, boolean) method is called on the specified URL.

    See Also:
    ConnectionFactory