com.izforge.izpack.installer
Class WebAccessor

java.lang.Object
  extended bycom.izforge.izpack.installer.WebAccessor

public class WebAccessor
extends java.lang.Object

Dialogs for password authentication and firewall specification, when needed, during web installation.

Version:
1.0
Author:
Chadwick McHenry

Nested Class Summary
private  class WebAccessor.MyDialogAuthenticator
          Authenticates via dialog when needed.
 
Field Summary
private  javax.swing.JDialog dialog
           
private  javax.swing.JLabel errorLabel
           
private  java.lang.Exception exception
           
private  javax.swing.JTextField hostField
           
private  java.io.InputStream iStream
           
private  javax.swing.JTextField nameField
           
private  java.lang.Thread openerThread
           
private  java.awt.Component parent
           
private  javax.swing.JPasswordField passField
           
private  javax.swing.JPanel passwordPanel
           
private  javax.swing.JTextField portField
           
private  javax.swing.JLabel promptLabel
           
private  javax.swing.JPanel proxyPanel
           
private  java.lang.Object soloCancelOption
           
private  boolean tryProxy
           
 
Constructor Summary
WebAccessor()
          Not yet Implemented: placeholder for headless installs.
WebAccessor(java.awt.Component parent)
          Create a WebAccessor that prompts for proxies and passwords using a JDialog.
 
Method Summary
private  javax.swing.JPanel getPasswordPanel()
           
private  javax.swing.JPanel getProxyPanel()
          Only to be called after an initial error has indicated a connection problem
 java.io.InputStream openInputStream(java.net.URL url)
          Opens a URL connection and returns it's InputStream for the specified URL.
private  void startOpening(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

openerThread

private java.lang.Thread openerThread

iStream

private java.io.InputStream iStream

exception

private java.lang.Exception exception

soloCancelOption

private java.lang.Object soloCancelOption

parent

private java.awt.Component parent

dialog

private javax.swing.JDialog dialog

tryProxy

private boolean tryProxy

passwordPanel

private javax.swing.JPanel passwordPanel

promptLabel

private javax.swing.JLabel promptLabel

nameField

private javax.swing.JTextField nameField

passField

private javax.swing.JPasswordField passField

proxyPanel

private javax.swing.JPanel proxyPanel

errorLabel

private javax.swing.JLabel errorLabel

hostField

private javax.swing.JTextField hostField

portField

private javax.swing.JTextField portField
Constructor Detail

WebAccessor

public WebAccessor()
Not yet Implemented: placeholder for headless installs.

Throws:
java.lang.UnsupportedOperationException

WebAccessor

public WebAccessor(java.awt.Component parent)
Create a WebAccessor that prompts for proxies and passwords using a JDialog.

Parameters:
parent - determines the frame in which the dialog is displayed; if the parentComponent has no Frame, a default Frame is used
Method Detail

openInputStream

public java.io.InputStream openInputStream(java.net.URL url)
Opens a URL connection and returns it's InputStream for the specified URL.

Parameters:
url - the url to open the stream to.
Returns:
an input stream ready to read, or null on failure

startOpening

private void startOpening(java.net.URL url)

getProxyPanel

private javax.swing.JPanel getProxyPanel()
Only to be called after an initial error has indicated a connection problem


getPasswordPanel

private javax.swing.JPanel getPasswordPanel()