H - The type of packet header.public abstract class VTNLayer4PortMatch<H extends Layer4PortHeader> extends VTNLayer4Match
VTNLayer4PortMatch describes the condition for IP port numbers
to match against packets.
Note that this class is not synchronized.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
abstract FlowMatchType |
getDestinationMatchType()
Return a flow match type corresponding to the destination port.
|
VTNPortRange |
getDestinationPort()
Return the range of the destination port number to match against packet.
|
abstract Class<H> |
getHeaderType()
Return a class which represents the packet header type.
|
abstract FlowMatchType |
getSourceMatchType()
Return a flow match type corresponding to the source port.
|
VTNPortRange |
getSourcePort()
Return the range of the source port number to match against packet.
|
int |
hashCode()
Return the hash code of this object.
|
boolean |
isEmpty()
Determine whether this instance does not specify any header field
or not.
|
boolean |
match(FlowMatchContext ctx)
Determine whether the given layer 4 protocol header matches the
condition configured in this instance.
|
void |
setConditionKey(StringBuilder builder)
Store strings used to construct flow condition key.
|
void |
verify()
Verify the contents of this instance.
|
create, create, getInetProtocol, setMatch, toVtnLayer4Matchpublic final VTNPortRange getSourcePort()
VTNPortRange instance if the range of the source
port number is specified. null if not specified.public final VTNPortRange getDestinationPort()
VTNPortRange instance if the range of the destination
port number is specified. null if not specified.public abstract Class<H> getHeaderType()
public abstract FlowMatchType getSourceMatchType()
FlowMatchType instance.public abstract FlowMatchType getDestinationMatchType()
FlowMatchType instance.public final void verify()
throws RpcException
verify in class VTNLayer4MatchRpcException - Verification failed.public final boolean match(FlowMatchContext ctx)
match in class VTNLayer4Matchctx - A FlowMatchContext instance.true only if the given header matches all the
conditions configured in this instance.public final void setConditionKey(StringBuilder builder)
setConditionKey in class VTNLayer4Matchbuilder - A StringBuilder instance which contains strings
used to construct flow condition key.public final boolean isEmpty()
isEmpty in class VTNLayer4Matchtrue only if this instance is empty.public final boolean equals(Object o)
Copyright © 2018 OpenDaylight. All rights reserved.