public class NetPhantomStarter extends Panel implements ActionListener, WindowListener, KeyListener, MouseListener, Runnable, AuthCB
Panel.AccessibleAWTPanelContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected Auth |
auth
The authenticator.
|
protected URL |
baseUrl
The base URL of the package file.
|
protected static String |
httpString
The HTTP string.
|
protected static String |
prgmName |
protected static String |
sslClass
SSL added string for class name.
|
protected static String |
sslClass2
SSL added string for class name #2.
|
protected static Color |
standardBackgroundColor
Defining dialog background color
|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
NetPhantomStarter() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Performs action requested by the selection of a push button.
|
protected String[] |
addClientArguments(String[] arg)
This method adds starting arguments for the Client
such as client certificate file name and password, accepted
CA certificate.
|
protected void |
addMessage(String text)
Adds a message to the message list.
|
protected String[] |
addStarterArguments(String[] arg)
This method adds starting arguments for the Starter
such as client certificate file name and password, accepted
CA certificate.
|
protected Window |
displayDialog(Window owner,
String title,
Component[] comps,
String[] buttons)
Displays a generic dialog box.
|
protected static void |
displayVersion(String text)
Display program information.
|
protected void |
disposeDialog(Window dlg)
Disposes of the dialog box.
|
String[] |
getAuth(boolean usesSSL,
boolean isProxy,
String serverName,
String scheme,
String realm,
String resource,
String userID,
String password)
Requests a password.
|
protected boolean |
initSSL()
Initializes SSL: does nothing.
|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
static void |
main(String[] arg)
This method starts execution of the Starter.
|
protected void |
messageBox(String msg)
Displays an error message.
|
protected void |
messageBox(String title,
String msg)
Displays an error message.
|
protected int |
messageBox(String title,
String[] msg,
int count,
String[] buttons)
Displays an error message.
|
protected int |
messageBox(String title,
String[] msg,
String[] buttons)
Displays an error message.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
paint(Graphics g) |
protected int |
processDialog(Window dlg)
Processes the dialog box for user input.
|
void |
run() |
protected void |
runProgram(String[] arg)
Runs the program.
|
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e)
Window is closed.
|
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
protected String[] |
wrapStrings(String[] msgs)
Scans an array of strings and returns a possibly
longer array because the string lengths were too
long.
|
addNotify, getAccessibleContextadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected static String httpString
protected static String sslClass
protected static String sslClass2
protected static String prgmName
protected static final Color standardBackgroundColor
protected URL baseUrl
protected Auth auth
public static void main(String[] arg)
The program can be started with optional parameters, some of which consists of a switch followed by one or more values. The switch must be preceded by a '-' (dash) or a '/' (forward slash). The switch can be given in upper or lower case.
The following parameters are accepted:
baseURL -C startClass -A arg1 [arg2 [argN]]where:
arg - Any command line parameters.protected static void displayVersion(String text)
protected void runProgram(String[] arg)
arg - All the arguments from the command line,
passed on by the main method.protected boolean initSSL()
protected String[] addClientArguments(String[] arg)
super.addStartArguments(arg) before returning,
in case of future enhancements in the non-SSL version.protected String[] addStarterArguments(String[] arg)
super.addStartArguments(arg) before returning,
in case of future enhancements in the non-SSL version.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - The action event.public void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerprotected void addMessage(String text)
text - The new message.protected String[] wrapStrings(String[] msgs)
protected void messageBox(String msg)
protected void messageBox(String title, String msg)
protected int messageBox(String title, String[] msg, String[] buttons)
protected int messageBox(String title, String[] msg, int count, String[] buttons)
protected Window displayDialog(Window owner, String title, Component[] comps, String[] buttons)
protected int processDialog(Window dlg)
protected void disposeDialog(Window dlg)
public String[] getAuth(boolean usesSSL, boolean isProxy, String serverName, String scheme, String realm, String resource, String userID, String password)
The following parameters indicates how the process is handled:
server = null,
realm = null,
resource = certificateFileName
server = protocol://serverName[:port],
realm = null,
resource = null
server = protocol://serverName[:port],
realm = realmString,
resource = null
The parameters "userID" and "password" are set to null if no previous data is present, otherwise the previous userID (always null for certificate files) and the previous password.
Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.