|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jumpi.impl.AbstractDestination | +--org.jumpi.impl.connector.udp.UdpDestination
A UdpDestination represents a UDP Internet Protocol Address. The UdpDestination consists of an InetAddress and a port number. The syntax is:
<protocolname>://[<ipaddress>|*]:[<port>|*]
Both InetAddress and port may be wildcard, used to filter received packets.
Field Summary |
Fields inherited from class org.jumpi.impl.AbstractDestination |
connector_, controller_, props_, url_, wildcard_ |
Fields inherited from interface org.jumpi.Destination |
PROTOCOL_SEPARATOR, SEPARATOR |
Constructor Summary | |
UdpDestination(java.lang.String url,
Controller controller,
Connector connector)
Creates UdpDestination which has a wildcard InetAddress and wilcard port. |
|
UdpDestination(java.lang.String url,
Controller controller,
Connector connector,
java.net.InetAddress address)
Creates a UdpDestination which has a specific InetAddress but has a wildcard port. |
|
UdpDestination(java.lang.String url,
Controller controller,
Connector connector,
java.net.InetAddress address,
int port)
Creates a UdpDestination specifically for a given InetAddress and port. |
|
UdpDestination(java.lang.String url,
Controller controller,
Connector connector,
int port)
Creates a UdpDestination which has a specific port but a wildcard InetAddress. |
Method Summary | |
java.net.InetAddress |
getInetAddress()
Return the InetAddress. |
int |
getPort()
Return the port. |
java.lang.String |
getUrl()
Return the Url representation of the Destination. |
boolean |
matches(Destination dest)
Determine if the dest UdpDestination matches this instance taking into account wildcard rules. |
Methods inherited from class org.jumpi.impl.AbstractDestination |
equals, getConnector, getController, getControllerName, getProperties, hashCode, isWildcard, setProperties |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UdpDestination(java.lang.String url, Controller controller, Connector connector, java.net.InetAddress address, int port)
url
- the Url representing the UdpDestination.controller
- the Controller associated with the UdpDestination.connector
- the Connector associated with the UdpDestination.address
- the InetAddress part of the UdpDestination.port
- the port number of the UdpDestination.public UdpDestination(java.lang.String url, Controller controller, Connector connector)
url
- the Url representing the UdpDestination.controller
- the Controller associated with the UdpDestination.connector
- the Connector associated with the UdpDestination.public UdpDestination(java.lang.String url, Controller controller, Connector connector, java.net.InetAddress address)
url
- the Url representing the UdpDestination.controller
- the Controller associated with the UdpDestination.connector
- the Connector associated with the UdpDestination.address
- the InetAddress part of the UdpDestination.public UdpDestination(java.lang.String url, Controller controller, Connector connector, int port)
url
- the Url representing the UdpDestination.controller
- the Controller associated with the UdpDestination.connector
- the Connector associated with the UdpDestination.port
- the port number of the UdpDestination.Method Detail |
public java.net.InetAddress getInetAddress()
public int getPort()
public java.lang.String getUrl()
getUrl
in interface Destination
getUrl
in class AbstractDestination
public boolean matches(Destination dest)
Determine if the dest UdpDestination matches this instance taking into account wildcard rules. A wildcard InetAddress matches any host, and a wildcard port matches any port number.
matches
in interface Destination
matches
in class AbstractDestination
dest
- the other Destination to be checked for the match.
|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |