Class TelnetSocket
java.lang.Object
java.net.Socket
org.prelle.telnet.TelnetSocket
- All Implemented Interfaces:
Closeable,AutoCloseable,TelnetConstants
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.prelle.telnet.TelnetConstants
TelnetConstants.ControlCode -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSocketListener(TelnetSocketListener optList) voidfireTelnetCommand(TelnetCommand command) static ExecutorService<E> EgetOptionData(int code) Retrieve data related to a specific config option on this connection<E extends TelnetOptionListener>
EgetOptionListener(int code) booleanisFeatureActive(int code) booleanisFeatureSupported(TelnetOption option) out()voidprocessSubnegotiation(int code, int[] values) voidsetOptionData(int code, Object value) Store data related to a specific config option on this connectionsetOptionListener(int code, TelnetOptionListener callback) setOptionListener(TelnetOption option, TelnetOptionListener callback) voidsubnegotiationEndedFor(int optionCode, Object data) Called by TelnetSubnegotiationHandler implementor classessupport(int code, TelnetConstants.ControlCode willOrDo) support(int code, TelnetConstants.ControlCode willOrDo, Object configData) Methods inherited from class java.net.Socket
bind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
Constructor Details
-
TelnetSocket
public TelnetSocket() -
TelnetSocket
- Throws:
UnknownHostExceptionIOException
-
-
Method Details
-
getExecutorService
-
getConfigOption
-
getCapabilities
-
getInputStream
- Overrides:
getInputStreamin classSocket- Throws:
IOException- See Also:
-
getOutputStream
- Overrides:
getOutputStreamin classSocket- Throws:
IOException- See Also:
-
out
- Throws:
IOException
-
support
-
support
-
addSocketListener
-
setOptionListener
-
setOptionListener
-
getOptionListener
-
getOptionData
public <E> E getOptionData(int code) Retrieve data related to a specific config option on this connection -
setOptionData
Store data related to a specific config option on this connection -
fireTelnetCommand
-
isFeatureActive
public boolean isFeatureActive(int code) -
isFeatureSupported
-
processSubnegotiation
public void processSubnegotiation(int code, int[] values) -
initialize
- Throws:
IOException
-
subnegotiationEndedFor
Called by TelnetSubnegotiationHandler implementor classes -
getNegotiationResult
-
getActiveOptions
-