com.izforge.izpack.installer.web
Class WebAccessor

java.lang.Object
  extended by com.izforge.izpack.installer.web.WebAccessor

public class WebAccessor
extends Object

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

Version:
1.0
Author:
Chadwick McHenry, Vladimir Ralev

Constructor Summary
WebAccessor(Component parent)
          Create a WebAccessor that prompts for proxies and passwords using a JDialog.
 
Method Summary
 int getContentLength()
           
 String getUrl()
           
 InputStream openInputStream(URL url)
          Opens a URL connection and returns it's InputStream for the specified URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAccessor

public WebAccessor(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 InputStream openInputStream(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

getUrl

public String getUrl()

getContentLength

public int getContentLength()


Copyright © 2018. All rights reserved.