|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.listeners.gateway.mina.UdpGatewayConfig
public class UdpGatewayConfig
Deals with UDP configuration properties and parsing.
Field Summary | |
---|---|
static java.lang.String |
HANDLER_CLASS_ATTR
Handler class configuration attribute name. |
static java.lang.String |
HOST_ATTR
Host name configuration attribute name. |
static java.lang.String |
PORT_ATTR
Port configuration attribute name. |
Constructor Summary | |
---|---|
UdpGatewayConfig(ConfigTree config)
Sole constructor. |
Method Summary | |
---|---|
MessageHandler |
getHandler()
Get the configured MessageHandler instance. |
int |
getPort()
Gets the port from the configuration. |
java.lang.String |
getServiceCategory()
Gets the target service category from the configuration. |
java.lang.String |
getServiceName()
Gets the target service name from the configuration. |
java.net.InetSocketAddress |
getSocketAddress()
Gets the InetSocketAddress that this gateway should listen to. |
static int |
parsePort(java.lang.String portString)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HOST_ATTR
public static final java.lang.String PORT_ATTR
public static final java.lang.String HANDLER_CLASS_ATTR
Constructor Detail |
---|
public UdpGatewayConfig(ConfigTree config)
config
- The ConfigTree
that contains the configuration
information.Method Detail |
---|
public int getPort() throws ConfigurationException
int
the port that the gateway should listen to.
ConfigurationException
- If the port was missing from the configuration or it could
not be parse as an int.public java.net.InetSocketAddress getSocketAddress() throws ConfigurationException
InetSocketAddress
that this gateway should listen to.
InetSocketAddress
the InetSocketAddress
that the
gateway should listen to.
ConfigurationException
- If the host or port was missing from the configuration or if
the port could not be parsed.public java.lang.String getServiceCategory() throws ConfigurationException
String
The target service category
ConfigurationException
- If service category attribute is missing from the
configuration.public java.lang.String getServiceName() throws ConfigurationException
String
The target service name
ConfigurationException
- If service name attribute is missing from the configuration.public MessageHandler getHandler() throws ConfigurationException
MessageHandler
instance. Defaults to
DefaultMessageHandler
.
config
- The listener configuration.
ConfigurationException
- Unable to create the configured MessageHandler
instance.public static int parsePort(java.lang.String portString) throws ConfigurationException
ConfigurationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |