Package org.apache.guacamole.protocol
Class FilteredGuacamoleSocket
java.lang.Object
org.apache.guacamole.net.DelegatingGuacamoleSocket
org.apache.guacamole.protocol.FilteredGuacamoleSocket
- All Implemented Interfaces:
GuacamoleSocket
Implementation of GuacamoleSocket which allows individual instructions to be
intercepted, overridden, etc.
-
Constructor Summary
ConstructorsConstructorDescriptionFilteredGuacamoleSocket
(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. -
Method Summary
Modifier and TypeMethodDescriptionReturns a GuacamoleReader which can be used to read from the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.Returns a GuacamoleWriter which can be used to write to the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.Methods inherited from class org.apache.guacamole.net.DelegatingGuacamoleSocket
close, getDelegateSocket, getProtocol, isOpen
-
Constructor Details
-
FilteredGuacamoleSocket
public 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. If reads or writes should be unfiltered, simply specify null rather than a particular filter.- Parameters:
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.
-
-
Method Details
-
getReader
Description copied from interface:GuacamoleSocket
Returns a GuacamoleReader which can be used to read from the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.- Specified by:
getReader
in interfaceGuacamoleSocket
- Overrides:
getReader
in classDelegatingGuacamoleSocket
- Returns:
- A GuacamoleReader which can be used to read from the Guacamole instruction stream.
-
getWriter
Description copied from interface:GuacamoleSocket
Returns a GuacamoleWriter which can be used to write to the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.- Specified by:
getWriter
in interfaceGuacamoleSocket
- Overrides:
getWriter
in classDelegatingGuacamoleSocket
- Returns:
- A GuacamoleWriter which can be used to write to the Guacamole instruction stream.
-