org.springframework.extensions.config
Class RemoteConfigElement

java.lang.Object
  extended by org.springframework.extensions.config.element.ConfigElementAdapter
      extended by org.springframework.extensions.config.RemoteConfigElement
All Implemented Interfaces:
Serializable, ConfigElement, RemoteConfigProperties

public class RemoteConfigElement
extends ConfigElementAdapter
implements RemoteConfigProperties

Describes the connection, authentication and endpoint properties stored within the block of the current configuration. This block provides settings for creating and working with remote services.

Author:
muzquiano
See Also:
Serialized Form

Nested Class Summary
static class RemoteConfigElement.AuthenticatorDescriptor
          The Class AuthenticatorDescriptor.
static class RemoteConfigElement.ConnectorDescriptor
          The Class ConnectorDescriptor.
static class RemoteConfigElement.Descriptor
          EndPoint Descriptor class
static class RemoteConfigElement.EndpointDescriptor
          The Class EndpointDescriptor.
static class RemoteConfigElement.IdentityType
          Enum describing the Identity Type for an Endpoint
static class RemoteConfigElement.KeyStoreDescriptor
          The Class KeyStoreDescriptor.
 
Field Summary
protected  HashMap<String,RemoteConfigElement.AuthenticatorDescriptor> authenticators
           
protected  HashMap<String,RemoteConfigElement.ConnectorDescriptor> connectors
           
protected  String defaultCredentialVaultProviderId
           
protected  String defaultEndpointId
           
protected  HashMap<String,RemoteConfigElement.EndpointDescriptor> endpoints
           
protected  RemoteConfigElement.KeyStoreDescriptor keyStoreDescriptor
           
 
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
attributes, children, name, value
 
Constructor Summary
RemoteConfigElement()
          Constructs a new Remote Config Element
 
Method Summary
 ConfigElement combine(ConfigElement element)
          Combines the given config element with this config element and returns a new instance containing the resulting combination.
 RemoteConfigElement.AuthenticatorDescriptor getAuthenticatorDescriptor(String id)
           
 String[] getAuthenticatorIds()
           
 RemoteConfigElement.ConnectorDescriptor getConnectorDescriptor(String id)
           
 String[] getConnectorIds()
           
 String getDefaultCredentialVaultProviderId()
           
 String getDefaultEndpointId()
           
 RemoteConfigElement.EndpointDescriptor getEndpointDescriptor(String id)
           
 String[] getEndpointIds()
           
protected static RemoteConfigElement newInstance(org.dom4j.Element elem)
          New instance.
 
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

keyStoreDescriptor

protected RemoteConfigElement.KeyStoreDescriptor keyStoreDescriptor

connectors

protected HashMap<String,RemoteConfigElement.ConnectorDescriptor> connectors

authenticators

protected HashMap<String,RemoteConfigElement.AuthenticatorDescriptor> authenticators

endpoints

protected HashMap<String,RemoteConfigElement.EndpointDescriptor> endpoints

defaultEndpointId

protected String defaultEndpointId

defaultCredentialVaultProviderId

protected String defaultCredentialVaultProviderId
Constructor Detail

RemoteConfigElement

public RemoteConfigElement()
Constructs a new Remote Config Element

Method Detail

combine

public ConfigElement combine(ConfigElement element)
Description copied from interface: ConfigElement
Combines the given config element with this config element and returns a new instance containing the resulting combination. The combination of the two objects MUST NOT change this instance.

Specified by:
combine in interface ConfigElement
Specified by:
combine in class ConfigElementAdapter
Parameters:
element - The config element to combine into this one
Returns:
The combined ConfigElement

getConnectorIds

public String[] getConnectorIds()
Specified by:
getConnectorIds in interface RemoteConfigProperties

getConnectorDescriptor

public RemoteConfigElement.ConnectorDescriptor getConnectorDescriptor(String id)
Specified by:
getConnectorDescriptor in interface RemoteConfigProperties

getAuthenticatorIds

public String[] getAuthenticatorIds()
Specified by:
getAuthenticatorIds in interface RemoteConfigProperties

getAuthenticatorDescriptor

public RemoteConfigElement.AuthenticatorDescriptor getAuthenticatorDescriptor(String id)
Specified by:
getAuthenticatorDescriptor in interface RemoteConfigProperties

getEndpointIds

public String[] getEndpointIds()
Specified by:
getEndpointIds in interface RemoteConfigProperties

getEndpointDescriptor

public RemoteConfigElement.EndpointDescriptor getEndpointDescriptor(String id)
Specified by:
getEndpointDescriptor in interface RemoteConfigProperties

getDefaultEndpointId

public String getDefaultEndpointId()
Specified by:
getDefaultEndpointId in interface RemoteConfigProperties

getDefaultCredentialVaultProviderId

public String getDefaultCredentialVaultProviderId()
Specified by:
getDefaultCredentialVaultProviderId in interface RemoteConfigProperties

newInstance

protected static RemoteConfigElement newInstance(org.dom4j.Element elem)
New instance.

Parameters:
elem - the elem
Returns:
the remote config element


Copyright © 2009 SpringSource, Inc. All Rights Reserved.