public class FilteredGuacamoleSocket extends Object implements GuacamoleSocket
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 |
---|---|
void |
close()
Releases all resources in use by the connection represented by this
GuacamoleSocket.
|
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.
|
boolean |
isOpen()
Returns whether this GuacamoleSocket is open and can be used for reading
and writing.
|
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
public GuacamoleWriter getWriter()
GuacamoleSocket
getWriter
in interface GuacamoleSocket
public void close() throws GuacamoleException
GuacamoleSocket
close
in interface GuacamoleSocket
GuacamoleException
- If an error occurs while releasing resources.public boolean isOpen()
GuacamoleSocket
isOpen
in interface GuacamoleSocket
Copyright © 2016. All rights reserved.