org.springframework.extensions.config
Class ServerConfigElement

java.lang.Object
  extended by org.springframework.extensions.config.element.ConfigElementAdapter
      extended by 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

Field Summary
static String CONFIG_ELEMENT_ID
           
 
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
attributes, children, name, value
 
Constructor Summary
ServerConfigElement()
          Default constructor
ServerConfigElement(String name)
          Constructor
 
Method Summary
 ConfigElement combine(ConfigElement configElement)
          Combines the given config element with this config element and returns a new instance containing the resulting combination.
 List<ConfigElement> getChildren()
          Returns a list of children held by this ConfigElement
 String getHostName()
           
 Integer getPort()
           
 String getScheme()
           
 void setHostName(String hostname)
           
 void setPort(Integer port)
           
 void setScheme(String scheme)
           
 
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, 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

CONFIG_ELEMENT_ID

public static final String CONFIG_ELEMENT_ID
See Also:
Constant Field Values
Constructor Detail

ServerConfigElement

public ServerConfigElement()
Default constructor


ServerConfigElement

public ServerConfigElement(String name)
Constructor

Parameters:
name - Name of the element this config element represents
Method Detail

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.