public class ProtocolInfo extends Object
Constructor and Description |
---|
ProtocolInfo()
Creates 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.
|
Modifier and Type | Method and Description |
---|---|
Collection<Form> |
getConnectionForms()
Returns a mutable collection of forms describing all known parameters for
a connection using this protocol.
|
String |
getName()
Returns the unique name of this protocol.
|
Collection<Form> |
getSharingProfileForms()
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 |
setName(String name)
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.
|
public ProtocolInfo(String name, Collection<Form> connectionForms, Collection<Form> sharingProfileForms)
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.public ProtocolInfo()
public ProtocolInfo(String name)
name
- The unique name associated with the protocol.public ProtocolInfo(String name, Collection<Form> forms)
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.public String getName()
public void setName(String name)
name
- The unique name of this protocol.public Collection<Form> getConnectionForms()
public void setConnectionForms(Collection<Form> connectionForms)
connectionForms
- A mutable collection of forms describing all known parameters for a
connection using this protocol.public Collection<Form> getSharingProfileForms()
public void setSharingProfileForms(Collection<Form> sharingProfileForms)
sharingProfileForms
- A mutable collection of forms describing all known parameters
relevant to a sharing profile whose primary connection uses this
protocol.Copyright © 2016. All rights reserved.