Package org.apache.commons.net.telnet
Class TerminalTypeOptionHandler
java.lang.Object
org.apache.commons.net.telnet.TelnetOptionHandler
org.apache.commons.net.telnet.TerminalTypeOptionHandler
Implements the telnet terminal type option RFC 1091.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intTerminal type optionprotected static final intIs (for subnegotiation)protected static final intSend (for subnegotiation)
- 
Constructor SummaryConstructorsConstructorDescriptionTerminalTypeOptionHandler(String termtype) Constructor for the TerminalTypeOptionHandler.TerminalTypeOptionHandler(String termtype, boolean initlocal, boolean initremote, boolean acceptlocal, boolean acceptremote) Constructor for the TerminalTypeOptionHandler.
- 
Method SummaryModifier and TypeMethodDescriptionint[]answerSubnegotiation(int[] suboptionData, int suboptionLength) Implements the abstract method of TelnetOptionHandler.Methods inherited from class org.apache.commons.net.telnet.TelnetOptionHandlergetAcceptLocal, getAcceptRemote, getInitLocal, getInitRemote, getOptionCode, setAcceptLocal, setAcceptRemote, setInitLocal, setInitRemote, startSubnegotiationLocal, startSubnegotiationRemote
- 
Field Details- 
TERMINAL_TYPETerminal type option- See Also:
 
- 
TERMINAL_TYPE_SENDSend (for subnegotiation)- See Also:
 
- 
TERMINAL_TYPE_ISIs (for subnegotiation)- See Also:
 
 
- 
- 
Constructor Details- 
TerminalTypeOptionHandlerConstructor for the TerminalTypeOptionHandler. Initial and accept behavior flags are set to false- Parameters:
- termtype- - terminal type that will be negotiated.
 
- 
TerminalTypeOptionHandlerpublic TerminalTypeOptionHandler(String termtype, boolean initlocal, boolean initremote, boolean acceptlocal, boolean acceptremote) Constructor for the TerminalTypeOptionHandler. Allows defining desired initial setting for local/remote activation of this option and behavior in case a local/remote activation request for this option is received.- Parameters:
- termtype- - terminal type that will be negotiated.
- initlocal- - if set to true, a- WILLis sent upon connection.
- initremote- - if set to true, a- DOis sent upon connection.
- acceptlocal- - if set to true, any- DOrequest is accepted.
- acceptremote- - if set to true, any- WILLrequest is accepted.
 
 
- 
- 
Method Details- 
answerSubnegotiationImplements the abstract method of TelnetOptionHandler.- Overrides:
- answerSubnegotiationin class- TelnetOptionHandler
- Parameters:
- suboptionData- - the sequence received, without IAC SB & IAC SE
- suboptionLength- - the length of data in suboption_data
- Returns:
- terminal type information
 
 
-