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 classNetworkListener.Duck
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ADDRESSstatic StringDEFAULT_CONFIGURATION_FILEstatic StringDEFAULT_TYPEstatic booleanENABLEDstatic booleanJK_ENABLEDstatic StringTYPE_PATTERN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtocolfindHttpProtocol()StringfindHttpProtocolName()ProtocolfindProtocol()ThreadPoolfindThreadPool()TransportfindTransport()StringgetAddress()IP address to listen onStringgetEnabled()If false, a configured listener, is disabledStringgetJkConfigurationFile()StringgetJkEnabled()If true, a jk listener is enabledStringgetName()Network-listener name, which could be used as referenceNetworkListenersgetParent()Returns the parent element of this configuration element.StringgetPort()Port to listen on@Pattern(regexp="^[0-9]{1,5},[0-9]{1,5}$",message="PortRange must be in the form: \'port,port\'.") StringgetPortRange()StringgetProtocol()Reference to a protocolStringgetThreadPool()Reference to a thread-pool, defined earlier in the document.StringgetTransport()Reference to a low-level transport@Pattern(regexp="(standard|proxy)") StringgetType()Network-listener name, which could be used as referencevoidsetAddress(String value)voidsetEnabled(String enabled)voidsetJkConfigurationFile(String file)voidsetJkEnabled(String enabled)voidsetName(String value)voidsetPort(String value)voidsetPortRange(String value)voidsetProtocol(String value)voidsetThreadPool(String value)voidsetTransport(String value)voidsetType(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:ConfigBeanProxyReturns 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:
getParentin interfaceConfigBeanProxy- Returns:
- the parent configuration node.
-
-