Methods Summary |
---|
public abstract int[] | answerSubnegotiation(int[] suboptionData, int suboptionLength)Method called upon reception of a subnegotiation for this option
coming from the other end.
Must be implemented by the actual TelnetOptionHandler to specify
which response must be sent for the subnegotiation request.
|
public boolean | getAcceptLocal()Returns a boolean indicating whether to accept a DO
request coming from the other end.
return (acceptLocal);
|
public boolean | getAcceptRemote()Returns a boolean indicating whether to accept a WILL
request coming from the other end.
return (acceptRemote);
|
boolean | getDo()Returns a boolean indicating whether a DO request sent to the other
side has been acknowledged.
return doFlag;
|
public boolean | getInitLocal()Returns a boolean indicating whether to send a WILL request
to the other end upon connection.
return (initialLocal);
|
public boolean | getInitRemote()Returns a boolean indicating whether to send a DO request
to the other end upon connection.
return (initialRemote);
|
public int | getOptionCode()Returns the option code for this option.
return (optionCode);
|
boolean | getWill()Returns a boolean indicating whether a WILL request sent to the other
side has been acknowledged.
return willFlag;
|
public void | setAcceptLocal(boolean accept)Set behaviour of the option for DO requests coming from
the other end.
acceptLocal = accept;
|
public void | setAcceptRemote(boolean accept)Set behaviour of the option for WILL requests coming from
the other end.
acceptRemote = accept;
|
void | setDo(boolean state)Tells this option whether a DO request sent to the other
side has been acknowledged (invoked by TelnetClient).
doFlag = state;
|
public void | setInitLocal(boolean init)Tells this option whether to send a WILL request upon connection.
initialLocal = init;
|
public void | setInitRemote(boolean init)Tells this option whether to send a DO request upon connection.
initialRemote = init;
|
void | setWill(boolean state)Tells this option whether a WILL request sent to the other
side has been acknowledged (invoked by TelnetClient).
willFlag = state;
|
public abstract int[] | startSubnegotiationLocal()This method is invoked whenever this option is acknowledged active on
the local end (TelnetClient sent a WILL, remote side sent a DO).
The method is used to specify a subnegotiation sequence that will be
sent by TelnetClient when the option is activated.
|
public abstract int[] | startSubnegotiationRemote()This method is invoked whenever this option is acknowledged active on
the remote end (TelnetClient sent a DO, remote side sent a WILL).
The method is used to specify a subnegotiation sequence that will be
sent by TelnetClient when the option is activated.
|