public class DummyNetworkListener extends Object implements NetworkListener
NetworkListener.DuckDEFAULT_ADDRESS, DEFAULT_CONFIGURATION_FILE, DEFAULT_TYPE, ENABLED, JK_ENABLED, TYPE_PATTERN| Constructor and Description |
|---|
DummyNetworkListener() |
| Modifier and Type | Method and Description |
|---|---|
Property |
addProperty(Property property) |
<T extends ConfigBeanProxy> |
createChild(Class<T> type)
Creates a child element of this configuration element
|
ConfigBeanProxy |
deepCopy(ConfigBeanProxy parent)
Performs a deep copy of this configuration element and returns it.
|
Protocol |
findHttpProtocol() |
String |
findHttpProtocolName() |
Protocol |
findProtocol() |
ThreadPool |
findThreadPool() |
Transport |
findTransport() |
String |
getAddress()
IP address to listen on
|
String |
getEnabled()
If false, a configured listener, is disabled
|
String |
getJkConfigurationFile() |
String |
getJkEnabled()
If true, a jk listener is enabled
|
String |
getName()
Network-listener name, which could be used as reference
|
NetworkListeners |
getParent()
Returns the parent element of this configuration element.
|
<T extends ConfigBeanProxy> |
getParent(Class<T> c)
Returns the typed parent element of this configuration element.
|
String |
getPort()
Port to listen on
|
String |
getPortRange() |
List<Property> |
getProperty()
Gets the value of the property property.
|
Property |
getProperty(String name) |
String |
getPropertyValue(String name)
Returns a property value if the bean has properties and one of its
properties name is equal to the one passed.
|
String |
getPropertyValue(String name,
String defaultValue)
Returns a property value if the bean has properties and one of its
properties name is equal to the one passed.
|
String |
getProtocol()
Reference to a protocol
|
String |
getThreadPool()
Reference to a thread-pool, defined earlier in the document.
|
String |
getTransport()
Reference to a low-level transport
|
String |
getType()
Network-listener name, which could be used as reference
|
void |
injectedInto(Object target) |
Property |
lookupProperty(String s) |
Property |
removeProperty(Property property) |
Property |
removeProperty(String s) |
void |
setAddress(String value) |
void |
setEnabled(String enabled) |
void |
setJkConfigurationFile(String jkConfigurationFile) |
void |
setJkEnabled(String value) |
void |
setName(String value) |
void |
setPort(String value) |
void |
setPortRange(String portRange) |
void |
setProtocol(String value) |
void |
setThreadPool(String value) |
void |
setTransport(String value) |
void |
setType(String type) |
public String getType()
NetworkListenergetType in interface NetworkListenerpublic void setType(String type)
setType in interface NetworkListenerpublic String getAddress()
NetworkListenergetAddress in interface NetworkListenerpublic void setAddress(String value)
setAddress in interface NetworkListenerpublic String getEnabled()
NetworkListenergetEnabled in interface NetworkListenerpublic void setEnabled(String enabled)
setEnabled in interface NetworkListenerpublic String getName()
NetworkListenergetName in interface NetworkListenerpublic void setName(String value)
setName in interface NetworkListenerpublic String getPort()
NetworkListenergetPort in interface NetworkListenerpublic void setPort(String value)
setPort in interface NetworkListenerpublic String getPortRange()
getPortRange in interface NetworkListenerpublic void setPortRange(String portRange)
setPortRange in interface NetworkListenerpublic String getProtocol()
NetworkListenergetProtocol in interface NetworkListenerpublic void setProtocol(String value)
setProtocol in interface NetworkListenerpublic String getThreadPool()
NetworkListenergetThreadPool in interface NetworkListenerpublic void setThreadPool(String value)
setThreadPool in interface NetworkListenerpublic String getTransport()
NetworkListenergetTransport in interface NetworkListenerpublic void setTransport(String value)
setTransport in interface NetworkListenerpublic String getJkEnabled()
NetworkListenergetJkEnabled in interface NetworkListenerpublic void setJkEnabled(String value)
setJkEnabled in interface NetworkListenerpublic String getJkConfigurationFile()
getJkConfigurationFile in interface NetworkListenerpublic void setJkConfigurationFile(String jkConfigurationFile)
setJkConfigurationFile in interface NetworkListenerpublic void injectedInto(Object target)
public <T extends ConfigBeanProxy> T createChild(Class<T> type) throws TransactionFailure
ConfigBeanProxycreateChild in interface ConfigBeanProxytype - the child element typeTransactionFailure - when called outside the boundaries of a transactionpublic Protocol findProtocol()
findProtocol in interface NetworkListenerpublic String findHttpProtocolName()
findHttpProtocolName in interface NetworkListenerpublic Protocol findHttpProtocol()
findHttpProtocol in interface NetworkListenerpublic ThreadPool findThreadPool()
findThreadPool in interface NetworkListenerpublic Transport findTransport()
findTransport in interface NetworkListenerpublic NetworkListeners getParent()
ConfigBeanProxygetParent in interface NetworkListenergetParent in interface ConfigBeanProxypublic <T extends ConfigBeanProxy> T getParent(Class<T> c)
ConfigBeanProxygetParent in interface ConfigBeanProxyc - parent's typepublic ConfigBeanProxy deepCopy(ConfigBeanProxy parent)
ConfigBeanProxydeepCopy in interface ConfigBeanProxyparent - the writable copy of the parentpublic List<Property> getProperty()
PropertyBagset method for the property property.
For example, to add a new item, do as follows:
getProperty().add(newItem);
Objects of the following type(s) are allowed in the list
PropertygetProperty in interface PropertyBagpublic Property addProperty(Property property)
addProperty in interface PropertyBagpublic Property lookupProperty(String s)
lookupProperty in interface PropertyBagpublic Property removeProperty(String s)
removeProperty in interface PropertyBagpublic Property removeProperty(Property property)
removeProperty in interface PropertyBagpublic Property getProperty(String name)
getProperty in interface PropertyBagpublic String getPropertyValue(String name)
PropertyBaggetPropertyValue in interface PropertyBagname - the property name requestedpublic String getPropertyValue(String name, String defaultValue)
PropertyBaggetPropertyValue in interface PropertyBagname - the property name requesteddefaultValue - is the default value to return in case the property
of that name does not exist in this bagCopyright © 2019. All rights reserved.