public class WebAccessor extends Object
Modifier and Type | Class and Description |
---|---|
private class |
WebAccessor.MyDialogAuthenticator
Authenticates via dialog when needed.
|
Modifier and Type | Field and Description |
---|---|
private JDialog |
dialog |
private JLabel |
errorLabel |
private Exception |
exception |
private JTextField |
hostField |
private InputStream |
iStream |
private JTextField |
nameField |
private Thread |
openerThread |
private Component |
parent |
private JPasswordField |
passField |
private JPanel |
passwordPanel |
private JTextField |
portField |
private JLabel |
promptLabel |
private JPanel |
proxyPanel |
private Object |
soloCancelOption |
private boolean |
tryProxy |
Constructor and Description |
---|
WebAccessor()
Not yet Implemented: placeholder for headless installs.
|
WebAccessor(Component parent)
Create a WebAccessor that prompts for proxies and passwords using a JDialog.
|
Modifier and Type | Method and Description |
---|---|
private JPanel |
getPasswordPanel() |
private JPanel |
getProxyPanel()
Only to be called after an initial error has indicated a connection problem
|
InputStream |
openInputStream(URL url)
Opens a URL connection and returns it's InputStream for the specified URL.
|
private void |
startOpening(URL url) |
private Thread openerThread
private InputStream iStream
private Object soloCancelOption
private boolean tryProxy
private JPanel passwordPanel
private JLabel promptLabel
private JTextField nameField
private JPasswordField passField
private JPanel proxyPanel
private JLabel errorLabel
private JTextField hostField
private JTextField portField
public WebAccessor()
UnsupportedOperationException
public WebAccessor(Component parent)
parent
- determines the frame in which the dialog is displayed; if the parentComponent
has no Frame, a default Frame is usedpublic InputStream openInputStream(URL url)
url
- the url to open the stream to.private void startOpening(URL url)
private JPanel getProxyPanel()
private JPanel getPasswordPanel()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses