|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--telnet
A telnet implementation that supports different terminal emulations.
Field Summary | |
protected java.lang.String |
address
The host address to connect to. |
protected java.lang.String |
emulation
Emulation type (default is vt320). |
protected java.util.Vector |
modules
Dynamically loaded modules are stored here. |
java.util.Hashtable |
params
This Hashtable contains information retrievable by getParameter() in case the program is run as an application and the AppletStub is missing. |
protected int |
port
The port number (default ist 23). |
protected java.lang.String |
proxy
The proxy ip address. |
protected int |
proxyport
The proxy port number. |
protected Terminal |
term
The terminal emulation (dynamically loaded). |
protected TelnetIO |
tio
The telnet io methods. |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
telnet()
|
Method Summary | |
boolean |
connect()
Connect to the specified host and port but don't break existing connections. |
boolean |
connect(java.lang.String host)
Connect to the specified host and port but don't break existing connections. |
boolean |
connect(java.lang.String host,
int prt)
Connect to the specified host and port but don't break existing connections. |
boolean |
disconnect()
Disconnect from the remote host. |
java.lang.String |
getAppletInfo()
Retrieve the current version of the applet. |
java.lang.String |
getParameter(java.lang.String name)
We override the Applet method getParameter() to be able to handle parameters even as application. |
java.lang.String[][] |
getParameterInfo()
Retrieve parameter tag information. |
void |
init()
Initialize applet. |
static void |
main(java.lang.String[] args)
The main function is called on startup of the application. |
java.lang.Object |
notifyStatus(java.util.Vector status)
This method is called when telnet needs to be notified of status changes. |
void |
run()
Try to read data from the sockets and put it on the terminal. |
boolean |
send(java.lang.String str)
Send a String to the remote host. |
void |
start()
Upon start of the applet try to create a new connection. |
void |
stop()
Disconnect when the applet is stopped. |
boolean |
writeToSocket(java.lang.String str)
Send a String to the remote Host. |
void |
writeToUser(java.lang.String str)
Send a String to the users terminal |
Methods inherited from class java.applet.Applet |
destroy,
getAppletContext,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
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,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected TelnetIO tio
TelnetIO
protected Terminal term
emulation
,
Terminal
,
TerminalHost
protected java.lang.String address
protected int port
protected java.lang.String proxy
address
protected int proxyport
proxy
,
port
protected java.lang.String emulation
term
,
Terminal
,
TerminalHost
protected java.util.Vector modules
public java.util.Hashtable params
Constructor Detail |
public telnet()
Method Detail |
public java.lang.String getAppletInfo()
public java.lang.String[][] getParameterInfo()
Applet.getParameterInfo()
public java.lang.String getParameter(java.lang.String name)
name
- The name of the queried parameter.Applet.getParameter(java.lang.String)
public static void main(java.lang.String[] args)
public void init()
public void start()
public final void stop()
public void run()
public boolean connect()
public boolean connect(java.lang.String host)
host
- destination host addresspublic boolean connect(java.lang.String host, int prt)
host
- destination host addressprt
- destination hosts portpublic boolean disconnect()
public boolean send(java.lang.String str)
s
- String to be sentTerminalHost
public boolean writeToSocket(java.lang.String str)
str
- String to be sentBSXModule
public void writeToUser(java.lang.String str)
str
- String to be displayedBSXModule
public java.lang.Object notifyStatus(java.util.Vector status)
status
- Vector of status information.StatusPeer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |