java.lang.Object
org.prelle.telnet.TelnetSubnegotiationHandler
org.prelle.telnet.option.LineMode
- All Implemented Interfaces:
TelnetConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic classstatic enumstatic classNested classes/interfaces inherited from interface org.prelle.telnet.TelnetConstants
TelnetConstants.ControlCode -
Field Summary
Fields inherited from class org.prelle.telnet.TelnetSubnegotiationHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleSubnegotiation(int code, int[] values, TelnetSocket origin, TelnetOutputStream out) booleaninitializeAs(TelnetOption option, CommunicationRole role, TelnetSocket origin, TelnetOutputStream out) Called after the use of a option has been confirmedstatic voidsetFlags(TelnetOutputStream out, List<LineMode.ModeBit> flags)
-
Constructor Details
-
LineMode
public LineMode()
-
-
Method Details
-
initializeAs
public boolean initializeAs(TelnetOption option, CommunicationRole role, TelnetSocket origin, TelnetOutputStream out) Called after the use of a option has been confirmed- Overrides:
initializeAsin classTelnetSubnegotiationHandler- Returns:
- TRUE if a subnegotiation is needed
-
handleSubnegotiation
public void handleSubnegotiation(int code, int[] values, TelnetSocket origin, TelnetOutputStream out) - Specified by:
handleSubnegotiationin classTelnetSubnegotiationHandler- See Also:
-
setFlags
public static void setFlags(TelnetOutputStream out, List<LineMode.ModeBit> flags) throws IOException - Throws:
IOException
-