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()
GuacamoleSocketgetReader in interface GuacamoleSocketpublic GuacamoleWriter getWriter()
GuacamoleSocketgetWriter in interface GuacamoleSocketpublic void close()
throws GuacamoleException
GuacamoleSocketclose in interface GuacamoleSocketGuacamoleException - If an error occurs while releasing resources.public boolean isOpen()
GuacamoleSocketisOpen in interface GuacamoleSocketCopyright © 2018. All rights reserved.