|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.optional.net.TelnetTask
Class to provide automated telnet protocol support for the Ant build tool
Inner Class Summary | |
class |
TelnetTask.AntTelnetClient
This class handles the abstraction of the telnet protocol. |
class |
TelnetTask.TelnetRead
This class reads the output from the connected server until the required string is found. |
class |
TelnetTask.TelnetSubTask
This class is the parent of the Read and Write tasks. |
class |
TelnetTask.TelnetWrite
This class sends text to the connected server |
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType, wrapper |
Constructor Summary | |
TelnetTask()
|
Method Summary | |
TelnetTask.TelnetSubTask |
createRead()
A subTask |
TelnetTask.TelnetSubTask |
createWrite()
A subTask |
void |
execute()
Verify that all parameters are included. |
void |
setInitialCR(boolean b)
Set the tcp port to connect to attribute |
void |
setPassword(java.lang.String p)
Set the password attribute |
void |
setPort(int p)
Set the tcp port to connect to attribute |
void |
setServer(java.lang.String m)
Set the server address attribute |
void |
setTimeout(java.lang.Integer i)
Change the default timeout to wait for valid responses |
void |
setUserid(java.lang.String u)
Set the userid attribute |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TelnetTask()
Method Detail |
public void execute() throws BuildException
execute
in class Task
org.apache.tools.ant.Task
BuildException
- if someting goes wrong with the buildpublic void setUserid(java.lang.String u)
public void setPassword(java.lang.String p)
public void setServer(java.lang.String m)
public void setPort(int p)
public void setInitialCR(boolean b)
public void setTimeout(java.lang.Integer i)
public TelnetTask.TelnetSubTask createRead()
public TelnetTask.TelnetSubTask createWrite()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |