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
Fields -
Constructor Summary
Constructors -
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, waitMethods inherited from interface org.yamcs.tse.Interceptor
interceptResponse
-
Field Details
-
CONFIG_TERMINATION
- See Also:
-
-
Constructor Details
-
RequestTerminator
public RequestTerminator(org.yamcs.YConfiguration config)
-
-
Method Details
-
interceptCommand
Description copied from interface:InterceptorIntercepts 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:
interceptCommandin 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
-