src/HTTPClient/HTTPConnection.java
/**
     * See if the given uri is compatible with this connection. Compatible
     * means that the given uri can be retrieved using this connection
     * object.
     *
     * @param uri  the URI to check
     * @return true if they're compatible, false otherwise
     * @since V0.3-2
     */
See if the given uri is compatible with this connection. Compatible
means that the given uri can be retrieved using this connection
object.

@param uri  the URI to check
@return true if they're compatible, false otherwise
@since V0.3-2
See if the given uri is compatible with this connection . Compatible means that the given uri can be retrieved using this connection object . @param uri the URI to check @return true if they ' re compatible false otherwise @since V0 . 3 - 2
public boolean isCompatibleWith(URI uri)
    {
	if (!uri.getScheme().equals(getProtocol())  ||
	    !uri.getHost().equalsIgnoreCase(Host))
		return false;
	int port = uri.getPort();
	if (port == -1)
	    port = URI.defaultPort(uri.getScheme());
	return port == Port;
    }
public boolean isCompatibleWith ( URI uri ) { if ( ! uri . getScheme ( ) . equals ( getProtocol ( ) ) || ! uri . getHost ( ) . equalsIgnoreCase ( Host ) ) return false ; int port = uri . getPort ( ) ; if ( port == - 1 ) port = URI . defaultPort ( uri . getScheme ( ) ) ; return port == Port ; }
See if the given uri is compatible with this connection.
See if the given uri is compatible with this connection .