org.springframework.extensions.config
Class ServerConfigElement
java.lang.Object
org.springframework.extensions.config.element.ConfigElementAdapter
org.springframework.extensions.config.ServerConfigElement
- All Implemented Interfaces:
- Serializable, ConfigElement, ServerProperties
public class ServerConfigElement
- extends ConfigElementAdapter
- implements ServerProperties
- Author:
- David Caruana
- See Also:
- Serialized Form
| Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter |
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString |
CONFIG_ELEMENT_ID
public static final String CONFIG_ELEMENT_ID
- See Also:
- Constant Field Values
ServerConfigElement
public ServerConfigElement()
- Default constructor
ServerConfigElement
public ServerConfigElement(String name)
- Constructor
- Parameters:
name - Name of the element this config element represents
getChildren
public List<ConfigElement> getChildren()
- Description copied from interface:
ConfigElement
- Returns a list of children held by this ConfigElement
- Specified by:
getChildren in interface ConfigElement- Overrides:
getChildren in class ConfigElementAdapter
- Returns:
- The list of children.
- See Also:
ConfigElementAdapter.getChildren()
combine
public ConfigElement combine(ConfigElement configElement)
- 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:
configElement - The config element to combine into this one
- Returns:
- The combined ConfigElement
- See Also:
ConfigElementAdapter.combine(org.springframework.extensions.config.ConfigElement)
getScheme
public String getScheme()
- Specified by:
getScheme in interface ServerProperties
- Returns:
- server scheme
setScheme
public void setScheme(String scheme)
- Parameters:
scheme -
getHostName
public String getHostName()
- Specified by:
getHostName in interface ServerProperties
- Returns:
- server hostname
setHostName
public void setHostName(String hostname)
- Parameters:
hostname -
getPort
public Integer getPort()
- Specified by:
getPort in interface ServerProperties
- Returns:
- server port
setPort
public void setPort(Integer port)
- Parameters:
port -
Copyright © 2009 SpringSource, Inc. All Rights Reserved.