Package org.yamcs.tse
Class RequestTerminator
java.lang.Object
org.yamcs.tse.RequestTerminator
- All Implemented Interfaces:
Interceptor
Adds a termination pattern to the end of command string. This is typically used on stream-oriented protocols like TCP
for delimiting messages.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
interceptCommand
(TseCommand metadata, byte[] bytes, Charset encoding) Intercepts a raw command just before passing it to driver-specific write logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.tse.Interceptor
interceptResponse
-
Field Details
-
CONFIG_TERMINATION
- See Also:
-
-
Constructor Details
-
RequestTerminator
-
-
Method Details
-
interceptCommand
Description copied from interface:Interceptor
Intercepts a raw command just before passing it to driver-specific write logic.Usually this corresponds to an encoded string, for which the encoding is provided too.
- Specified by:
interceptCommand
in interfaceInterceptor
- Parameters:
metadata
- Metadata about the command. Note that full information is only available if the command was issued through Yamcs. If instead an internal Telnet session was used, only the target instrument is known.bytes
- The raw command (usually correspons to an encoded string)encoding
- String encoding
-