public final class VTNUdpMatch extends VTNLayer4PortMatch<UdpHeader>
VTNUdpMatch describes the condition for UDP header to match against
packets.
Note that this class is not synchronized.
| Constructor and Description |
|---|
VTNUdpMatch()
Construct a new instance that matches every UDP packet.
|
VTNUdpMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.UdpMatchFields umatch)
Construct a new instance from the given
UdpMatchFields instance. |
VTNUdpMatch(VTNPortRange src,
VTNPortRange dst)
Construct a new instance.
|
VTNUdpMatch(VtnUdpMatchFields vumatch)
Construct a new instance from the given
VtnUdpMatchFields
instance. |
| Modifier and Type | Method and Description |
|---|---|
FlowMatchType |
getDestinationMatchType()
Return a flow match type corresponding to the destination port.
|
Class<UdpHeader> |
getHeaderType()
Return a class which represents the packet header type.
|
short |
getInetProtocol(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
Return an IP protocol number assigned to this protocol.
|
FlowMatchType |
getSourceMatchType()
Return a flow match type corresponding to the source port.
|
void |
setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
Configure the condition represented by this instance into the given
MD-SAL flow match builder.
|
VtnUdpMatch |
toVtnLayer4Match()
Return a
VtnUdpMatch instance which contains the condition
represented by this instance. |
equals, getDestinationPort, getSourcePort, hashCode, isEmpty, match, setConditionKey, verifycreate, createpublic VTNUdpMatch()
public VTNUdpMatch(VTNPortRange src, VTNPortRange dst)
src - A VTNPortRange instance which specifies the range
of the source port number. null matches every
source port number.dst - A VTNPortRange instance which specifies the range
of the destination port number. null matches every
destination port number.public VTNUdpMatch(VtnUdpMatchFields vumatch) throws RpcException
VtnUdpMatchFields
instance.vumatch - A VtnUdpMatchFields instance.NullPointerException - vumatch is null.RpcException - vumatch contains invalid value.public VTNUdpMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.UdpMatchFields umatch)
throws RpcException
UdpMatchFields instance.umatch - A UdpMatchFields instance.NullPointerException - umatch is null.RpcException - umatch contains invalid value.public short getInetProtocol(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
getInetProtocol in class VTNLayer4Matchver - An IpVersion instance which describes the
IP version.public VtnUdpMatch toVtnLayer4Match()
VtnUdpMatch instance which contains the condition
represented by this instance.toVtnLayer4Match in class VTNLayer4MatchVtnUdpMatch instance if this instance contains
the condition. null if this instance does not contain
any condition.public void setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
setMatch in class VTNLayer4Matchbuilder - A MatchBuilder instance.ver - An IpVersion instance which describes the
IP version.public Class<UdpHeader> getHeaderType()
getHeaderType in class VTNLayer4PortMatch<UdpHeader>UdpHeader.public FlowMatchType getSourceMatchType()
getSourceMatchType in class VTNLayer4PortMatch<UdpHeader>FlowMatchType.UDP_SRC.public FlowMatchType getDestinationMatchType()
getDestinationMatchType in class VTNLayer4PortMatch<UdpHeader>FlowMatchType.UDP_DST.Copyright © 2018 OpenDaylight. All rights reserved.