/** * Lets the bridge tell the user agent that the following extension is supported by the bridge. */ public final void registerExtension(BridgeExtension ext) { // getImplementedExtensions() returns a String iterator according to Apache docs @SuppressWarnings("unchecked") Iterator<String> i = ext.getImplementedExtensions(); while (i.hasNext()) extensions.add(i.next()); }