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);
}