Package org.apache.guacamole.protocols
Class ProtocolInfo
java.lang.Object
org.apache.guacamole.protocols.ProtocolInfo
Describes a protocol and all parameters associated with it, as required by
a protocol plugin for guacd. Each parameter is described with a Form, which
allows the parameters of a protocol to be exposed to the user as friendly
groupings of fields.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ProtocolInfo with no associated name or forms.ProtocolInfo
(String name) Creates a new ProtocolInfo having the given name, but without any forms.ProtocolInfo
(String name, Collection<Form> forms) Creates a new ProtocolInfo having the given name and forms.ProtocolInfo
(String name, Collection<Form> connectionForms, Collection<Form> sharingProfileForms) Creates a new ProtocolInfo having the given name and forms. -
Method Summary
Modifier and TypeMethodDescriptionReturns a mutable collection of forms describing all known parameters for a connection using this protocol.getName()
Returns the unique name of this protocol.Returns a mutable collection of forms describing all known parameters relevant to a sharing profile whose primary connection uses this protocol.void
setConnectionForms
(Collection<Form> connectionForms) Sets the collection of forms describing all known parameters for a connection using this protocol.void
Sets the unique name of this protocol.void
setSharingProfileForms
(Collection<Form> sharingProfileForms) Sets the collection of forms describing all known parameters relevant to a sharing profile whose primary connection uses this protocol.
-
Constructor Details
-
ProtocolInfo
public ProtocolInfo(String name, Collection<Form> connectionForms, Collection<Form> sharingProfileForms) Creates a new ProtocolInfo having the given name and forms. The given collections of forms are used to describe the parameters for connections and sharing profiles respectively.- Parameters:
name
- The unique name associated with the protocol.connectionForms
- A collection of forms describing all known parameters for a connection using this protocol.sharingProfileForms
- A collection of forms describing all known parameters relevant to a sharing profile whose primary connection uses this protocol.
-
ProtocolInfo
public ProtocolInfo()Creates a new ProtocolInfo with no associated name or forms. -
ProtocolInfo
Creates a new ProtocolInfo having the given name, but without any forms.- Parameters:
name
- The unique name associated with the protocol.
-
ProtocolInfo
Creates a new ProtocolInfo having the given name and forms. The given forms are used to describe the parameters for both connections and sharing profiles.- Parameters:
name
- The unique name associated with the protocol.forms
- A collection of forms describing all known parameters for this protocol, regardless of whether it is used in the context of a connection or a sharing profile.
-
-
Method Details
-
getName
Returns the unique name of this protocol. The protocol name is the value required by the corresponding protocol plugin for guacd.- Returns:
- The unique name of this protocol.
-
setName
Sets the unique name of this protocol. The protocol name is the value required by the corresponding protocol plugin for guacd.- Parameters:
name
- The unique name of this protocol.
-
getConnectionForms
Returns a mutable collection of forms describing all known parameters for a connection using this protocol. Changes to this collection affect the forms exposed to the user.- Returns:
- A mutable collection of forms describing all known parameters for a connection using this protocol.
-
setConnectionForms
Sets the collection of forms describing all known parameters for a connection using this protocol. The provided collection must be mutable.- Parameters:
connectionForms
- A mutable collection of forms describing all known parameters for a connection using this protocol.
-
getSharingProfileForms
Returns a mutable collection of forms describing all known parameters relevant to a sharing profile whose primary connection uses this protocol. Changes to this collection affect the forms exposed to the user.- Returns:
- A mutable collection of forms describing all known parameters relevant to a sharing profile whose primary connection uses this protocol.
-
setSharingProfileForms
Sets the collection of forms describing all known parameters relevant to a sharing profile whose primary connection uses this protocol. The provided collection must be mutable.- Parameters:
sharingProfileForms
- A mutable collection of forms describing all known parameters relevant to a sharing profile whose primary connection uses this protocol.
-