public class DestinationSettings extends PropertiesSettings
Service. A
destination's configuration includes an id attribute to provide
a public name for clients to use when sending messages.
The configuration also specifies which channels are valid to contact the destination, as well as which adapter a service must use to process client messages for this destination and any security constraints that need to be enforced.
flex.messaging.Destination| Modifier and Type | Field and Description |
|---|---|
static String |
SERVER_ELEMENT |
properties| Constructor and Description |
|---|
DestinationSettings(String id)
Used to construct a new set of properties to describe a destination.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChannelSettings(ChannelSettings c)
Adds a channel to the set of channels that should be used to contact
this destination.
|
AdapterSettings |
getAdapterSettings()
Gets the adapter to be used for this destination.
|
List |
getChannelSettings()
Gets the set of channels that can be used to contact this destination.
|
SecurityConstraint |
getConstraint()
Gets the
SecurityConstraint that will be applied to this
destination, or null if no constraint has been registered. |
String |
getId()
Gets the unique identity used by clients to target a destination.
|
void |
setAdapterSettings(AdapterSettings a)
Sets the service adapter to be used when the managing service is
processing messages bound for this destination.
|
void |
setChannelSettings(List settings)
Overrides the set of channels that can be used to contact this
destination.
|
void |
setConstraint(SecurityConstraint sc)
Sets the security constraint to be applied to this destination.
|
addProperties, addProperty, addProperty, getProperties, getProperty, getPropertyAsBoolean, getPropertyAsInt, getPropertyAsList, getPropertyAsLong, getPropertyAsMap, getPropertyAsStringpublic static final String SERVER_ELEMENT
public DestinationSettings(String id)
id - A string representing the unique identity of this destination.public String getId()
public void addChannelSettings(ChannelSettings c)
c - the ChannelSettings to add to the set of
channel definitions for this destination.public void setChannelSettings(List settings)
settings - A List of ChannelSettings.public List getChannelSettings()
java.util.List of ChannelSettings
describing the channels that can be used to contact this destination.public SecurityConstraint getConstraint()
SecurityConstraint that will be applied to this
destination, or null if no constraint has been registered.SecurityConstraint for this destination.public void setConstraint(SecurityConstraint sc)
null to remove an existing constraint.sc - the SecurityConstraint to apply to this
destination.public void setAdapterSettings(AdapterSettings a)
a - The AdapterSettings that describe the adapter
to use for this destination.public AdapterSettings getAdapterSettings()
AdapterSettings for this destinations adapter.
A null value implies the the default service adapter should
be used.Copyright © 2015 The Apache Software Foundation. All rights reserved.