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 SummaryConstructorsConstructorDescriptionCreates 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 SummaryModifier 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.voidsetConnectionForms(Collection<Form> connectionForms) Sets the collection of forms describing all known parameters for a connection using this protocol.voidSets the unique name of this protocol.voidsetSharingProfileForms(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- 
ProtocolInfopublic 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.
 
- 
ProtocolInfopublic ProtocolInfo()Creates a new ProtocolInfo with no associated name or forms.
- 
ProtocolInfoCreates a new ProtocolInfo having the given name, but without any forms.- Parameters:
- name- The unique name associated with the protocol.
 
- 
ProtocolInfoCreates 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- 
getNameReturns 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.
 
- 
setNameSets 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.
 
- 
getConnectionFormsReturns 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.
 
- 
setConnectionFormsSets 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.
 
- 
getSharingProfileFormsReturns 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.
 
- 
setSharingProfileFormsSets 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.
 
 
-