public class FilteredGuacamoleSocket extends DelegatingGuacamoleSocket
Constructor and Description |
---|
FilteredGuacamoleSocket(GuacamoleSocket socket,
GuacamoleFilter readFilter,
GuacamoleFilter writeFilter)
Creates a new FilteredGuacamoleSocket which uses the given filters to
determine whether instructions read/written are allowed through,
modified, etc.
|
Modifier and Type | Method and Description |
---|---|
GuacamoleReader |
getReader()
Returns a GuacamoleReader which can be used to read from the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
GuacamoleWriter |
getWriter()
Returns a GuacamoleWriter which can be used to write to the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
close, getDelegateSocket, getProtocol, isOpen
public FilteredGuacamoleSocket(GuacamoleSocket socket, GuacamoleFilter readFilter, GuacamoleFilter writeFilter)
socket
- The GuacamoleSocket to wrap.readFilter
- The GuacamoleFilter to apply to all read instructions,
if any.writeFilter
- The GuacamoleFilter to apply to all written
instructions, if any.public GuacamoleReader getReader()
GuacamoleSocket
getReader
in interface GuacamoleSocket
getReader
in class DelegatingGuacamoleSocket
public GuacamoleWriter getWriter()
GuacamoleSocket
getWriter
in interface GuacamoleSocket
getWriter
in class DelegatingGuacamoleSocket
Copyright © 2020. All rights reserved.