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 GuacamoleReadergetReader()Returns a GuacamoleReader which can be used to read from the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.GuacamoleWritergetWriter()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:GuacamoleSocketReturns a GuacamoleReader which can be used to read from the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.- Specified by:
getReaderin interfaceGuacamoleSocket- Overrides:
getReaderin classDelegatingGuacamoleSocket- Returns:
- A GuacamoleReader which can be used to read from the Guacamole instruction stream.
-
getWriter
public GuacamoleWriter getWriter()
Description copied from interface:GuacamoleSocketReturns a GuacamoleWriter which can be used to write to the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.- Specified by:
getWriterin interfaceGuacamoleSocket- Overrides:
getWriterin classDelegatingGuacamoleSocket- Returns:
- A GuacamoleWriter which can be used to write to the Guacamole instruction stream.
-
-