Class FilteredGuacamoleSocket

  • All Implemented Interfaces:
    GuacamoleSocket

    public class FilteredGuacamoleSocket
    extends DelegatingGuacamoleSocket
    Implementation of GuacamoleSocket which allows individual instructions to be intercepted, overridden, etc.
    • 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 interface GuacamoleSocket
        Overrides:
        getReader in class DelegatingGuacamoleSocket
        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 interface GuacamoleSocket
        Overrides:
        getWriter in class DelegatingGuacamoleSocket
        Returns:
        A GuacamoleWriter which can be used to write to the Guacamole instruction stream.