Package org.glassfish.grizzly.config.dom
Interface NetworkListener
-
- All Superinterfaces:
ConfigBeanProxy
,PropertyBag
- All Known Implementing Classes:
DummyNetworkListener
public interface NetworkListener extends ConfigBeanProxy, PropertyBag
Binds protocol to a specific endpoint to listen on
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NetworkListener.Duck
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ADDRESS
static String
DEFAULT_CONFIGURATION_FILE
static String
DEFAULT_TYPE
static boolean
ENABLED
static boolean
JK_ENABLED
static String
TYPE_PATTERN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Protocol
findHttpProtocol()
String
findHttpProtocolName()
Protocol
findProtocol()
ThreadPool
findThreadPool()
Transport
findTransport()
String
getAddress()
IP address to listen onString
getEnabled()
If false, a configured listener, is disabledString
getJkConfigurationFile()
String
getJkEnabled()
If true, a jk listener is enabledString
getName()
Network-listener name, which could be used as referenceNetworkListeners
getParent()
Returns the parent element of this configuration element.String
getPort()
Port to listen on@Pattern(regexp="^[0-9]{1,5},[0-9]{1,5}$",message="PortRange must be in the form: \'port,port\'.") String
getPortRange()
String
getProtocol()
Reference to a protocolString
getThreadPool()
Reference to a thread-pool, defined earlier in the document.String
getTransport()
Reference to a low-level transport@Pattern(regexp="(standard|proxy)") String
getType()
Network-listener name, which could be used as referencevoid
setAddress(String value)
void
setEnabled(String enabled)
void
setJkConfigurationFile(String file)
void
setJkEnabled(String enabled)
void
setName(String value)
void
setPort(String value)
void
setPortRange(String value)
void
setProtocol(String value)
void
setThreadPool(String value)
void
setTransport(String value)
void
setType(String type)
-
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent
-
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
-
-
-
Field Detail
-
ENABLED
static final boolean ENABLED
- See Also:
- Constant Field Values
-
JK_ENABLED
static final boolean JK_ENABLED
- See Also:
- Constant Field Values
-
DEFAULT_ADDRESS
static final String DEFAULT_ADDRESS
- See Also:
- Constant Field Values
-
DEFAULT_CONFIGURATION_FILE
static final String DEFAULT_CONFIGURATION_FILE
- See Also:
- Constant Field Values
-
TYPE_PATTERN
static final String TYPE_PATTERN
- See Also:
- Constant Field Values
-
DEFAULT_TYPE
static final String DEFAULT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddress
@NetworkAddress String getAddress()
IP address to listen on
-
setAddress
void setAddress(String value)
-
getEnabled
String getEnabled()
If false, a configured listener, is disabled
-
setEnabled
void setEnabled(String enabled)
-
getJkConfigurationFile
String getJkConfigurationFile()
-
setJkConfigurationFile
void setJkConfigurationFile(String file)
-
getJkEnabled
String getJkEnabled()
If true, a jk listener is enabled
-
setJkEnabled
void setJkEnabled(String enabled)
-
getName
String getName()
Network-listener name, which could be used as reference
-
setName
void setName(String value)
-
getType
@Pattern(regexp="(standard|proxy)") @Pattern(regexp="(standard|proxy)") String getType()
Network-listener name, which could be used as reference
-
setType
void setType(String type)
-
setPort
void setPort(String value)
-
getPortRange
@Pattern(regexp="^[0-9]{1,5},[0-9]{1,5}$", message="PortRange must be in the form: \'port,port\'.") @Pattern(regexp="^[0-9]{1,5},[0-9]{1,5}$",message="PortRange must be in the form: \'port,port\'.") String getPortRange()
-
setPortRange
void setPortRange(String value)
-
getProtocol
String getProtocol()
Reference to a protocol
-
setProtocol
void setProtocol(String value)
-
getThreadPool
String getThreadPool()
Reference to a thread-pool, defined earlier in the document.
-
setThreadPool
void setThreadPool(String value)
-
getTransport
String getTransport()
Reference to a low-level transport
-
setTransport
void setTransport(String value)
-
findHttpProtocol
@DuckTyped Protocol findHttpProtocol()
-
findHttpProtocolName
@DuckTyped String findHttpProtocolName()
-
findProtocol
@DuckTyped Protocol findProtocol()
-
findThreadPool
@DuckTyped ThreadPool findThreadPool()
-
findTransport
@DuckTyped Transport findTransport()
-
getParent
@DuckTyped NetworkListeners getParent()
Description copied from interface:ConfigBeanProxy
Returns the parent element of this configuration element. It is possible to return a not null parent while the parent knows nothing of this child element. This could happen when the child element was removed from the configuration tree, yet it's parent would not have been reset.- Specified by:
getParent
in interfaceConfigBeanProxy
- Returns:
- the parent configuration node.
-
-