Package org.apache.guacamole.protocol
Class FilteredGuacamoleSocket
- java.lang.Object
-
- org.apache.guacamole.net.DelegatingGuacamoleSocket
-
- org.apache.guacamole.protocol.FilteredGuacamoleSocket
-
- All Implemented Interfaces:
GuacamoleSocket
public class FilteredGuacamoleSocket extends DelegatingGuacamoleSocket
Implementation of GuacamoleSocket which allows individual instructions to be intercepted, overridden, etc.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.guacamole.net.DelegatingGuacamoleSocket
close, getDelegateSocket, getProtocol, isOpen
-
-
-
-
Constructor Detail
-
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 Detail
-
getReader
public GuacamoleReader 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
public GuacamoleWriter 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.
-
-