net.named_data.jndn
public class ForwardingFlags extends Object
Constructor and Description |
---|
ForwardingFlags()
Create a new ForwardingFlags with "childInherit" set and all other flags
cleared.
|
ForwardingFlags(ForwardingFlags forwardingFlags)
Create a new ForwardingFlags as a copy of the given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCapture()
Get the value of the "capture" flag.
|
boolean |
getChildInherit()
Get the value of the "childInherit" flag.
|
int |
getNfdForwardingFlags()
Get an integer with the bits set according to the NFD forwarding flags as
used in the ControlParameters of the command interest.
|
void |
setCapture(boolean capture)
Set the value of the "capture" flag
|
void |
setChildInherit(boolean childInherit)
Set the value of the "childInherit" flag
|
void |
setNfdForwardingFlags(int nfdForwardingFlags)
Set the flags according to the NFD forwarding flags as used in the
ControlParameters of the command interest.
|
public ForwardingFlags()
public ForwardingFlags(ForwardingFlags forwardingFlags)
forwardingFlags
- The ForwardingFlags to copy.public final boolean getChildInherit()
public final boolean getCapture()
public final void setChildInherit(boolean childInherit)
childInherit
- true to set the flag, false to clear it.public final void setCapture(boolean capture)
capture
- true to set the flag, false to clear it.public final int getNfdForwardingFlags()
public final void setNfdForwardingFlags(int nfdForwardingFlags)
nfdForwardingFlags
- An integer with the bits set.Copyright © 2016. All rights reserved.