FileDocCategorySizeDatePackage
allowUserInteraction.javaAPI DocExample687Thu Apr 03 15:26:10 BST 1997None

allowUserInteraction

public class allowUserInteraction extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    URL u;
    URLConnection uc;
    myHttpHandler handler;

    try {
      u = new URL("http://www.ora.com");
      handler = new myHttpHandler();
      uc = handler.openConnection(u);
      if (!uc.getAllowUserInteraction()) {
        uc.setAllowUserInteraction(true);
      }
    }
    catch (MalformedURLException e) {
      System.err.println(e);
    }
    catch (IOException e) {
      System.err.println(e);
    }