public class RegistrationOptions extends Object
| Constructor and Description |
|---|
RegistrationOptions()
Create a new RegistrationOptions with "childInherit" set and all other flags
cleared.
|
RegistrationOptions(RegistrationOptions registrationOptions)
Create a new RegistrationOptions 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.
|
int |
getOrigin()
Get the origin value.
|
RegistrationOptions |
setCapture(boolean capture)
Set the value of the "capture" flag
|
RegistrationOptions |
setChildInherit(boolean childInherit)
Set the value of the "childInherit" flag
|
RegistrationOptions |
setNfdForwardingFlags(int nfdForwardingFlags)
Set the flags according to the NFD forwarding flags as used in the
ControlParameters of the command interest.
|
RegistrationOptions |
setOrigin(int origin)
Set the origin value.
|
public RegistrationOptions()
public RegistrationOptions(RegistrationOptions registrationOptions)
registrationOptions - The RegistrationOptions to copy.public final boolean getChildInherit()
public final boolean getCapture()
public final int getOrigin()
public final RegistrationOptions setChildInherit(boolean childInherit)
childInherit - true to set the flag, false to clear it.public final RegistrationOptions setCapture(boolean capture)
capture - true to set the flag, false to clear it.public final RegistrationOptions setOrigin(int origin)
origin - The new origin value, or -1 for not specified.public final int getNfdForwardingFlags()
public final RegistrationOptions setNfdForwardingFlags(int nfdForwardingFlags)
nfdForwardingFlags - An integer with the bits set.Copyright © 2019. All rights reserved.