RegistrationOptions Class¶
A RegistrationOptions holds the options used when registering with the forwarder to specify how to forward an interest and other options. We use a separate RegistrationOptions object to retain future compatibility if the format of the registration command is changed. (This class was renamed from ForwardingFlags, which is deprecated.)
| [C++]: | #include <ndn-cpp/registration-options.hpp>Namespace:  ndn | 
|---|---|
| [Python]: | Module: pyndn | 
| [Java]: | Package: net.named_data.jndn | 
RegistrationOptions Constructor¶
Create a new RegistrationOptions with “childInherit” set and all other flags cleared.
| [C++]: | RegistrationOptions();
 | 
|---|---|
| [Python]: | def __init__(self)
 | 
| [JavaScript]: | var RegistrationOptions = function RegistrationOptions()
 | 
| [Java]: | public RegistrationOptions()
 | 
RegistrationOptions.getCapture Method¶
Get the value of the “capture” flag.
| [C++]: | bool getCapture() const;
 | 
|---|---|
| [Python]: | # Returns bool
def getCapture(self)
 | 
| [JavaScript]: | // Returns boolean
RegistrationOptions.prototype.getCapture = function()
 | 
| [Java]: | public final boolean getCapture()
 | 
| Returns: | true if the flag is set, false if it is cleared. | 
RegistrationOptions.getChildInherit Method¶
Get the value of the “childInherit” flag.
| [C++]: | bool getChildInherit() const;
 | 
|---|---|
| [Python]: | # Returns bool
def getChildInherit(self)
 | 
| [JavaScript]: | // Returns boolean
RegistrationOptions.prototype.getChildInherit = function()
 | 
| [Java]: | public final boolean getChildInherit()
 | 
| Returns: | true if the flag is set, false if it is cleared. | 
RegistrationOptions.getOrigin Method¶
Get the origin value.
| [C++]: | int getOrigin() const;
 | 
|---|---|
| [Python]: | # Returns int
def getOrigin(self)
 | 
| [JavaScript]: | // Returns number
RegistrationOptions.prototype.getOrigin = function()
 | 
| [Java]: | public final int getOrigin()
 | 
| Returns: | The origin value. If not specified, return  | 
RegistrationOptions.setCapture Method¶
Set the value of the “capture” flag.
| [C++]: | RegistrationOptions& setCapture(
    bool capture
);
 | 
|---|---|
| [Python]: | # Returns RegistrationOptions
def setCapture(self,
    capture  # bool
)
 | 
| [JavaScript]: | // Returns RegistrationOptions
RegistrationOptions.prototype.setCapture = function(
    capture  // boolean
)
 | 
| [Java]: | public final RegistrationOptions setCapture(
    boolean capture
)
 | 
| Parameters: | 
 | 
| Returns: | This RegistrationOptions so that you can chain calls to update values. | 
RegistrationOptions.setChildInherit Method¶
Set the value of the “childInherit” flag.
| [C++]: | RegistrationOptions& setChildInherit(
    bool childInherit
);
 | 
|---|---|
| [Python]: | # Returns RegistrationOptions
def setChildInherit(self,
    childInherit  # bool
)
 | 
| [JavaScript]: | // Returns RegistrationOptions
RegistrationOptions.prototype.setChildInherit = function(
    childInherit  // boolean
)
 | 
| [Java]: | public final RegistrationOptions setChildInherit(
    boolean childInherit
)
 | 
| Parameters: | 
 | 
| Returns: | This RegistrationOptions so that you can chain calls to update values. | 
RegistrationOptions.setOrigin Method¶
Set the origin value.
| [C++]: | RegistrationOptions& setOrigin(
    int origin
);
 | 
|---|---|
| [Python]: | # Returns RegistrationOptions
def setOrigin(self,
    origin  # int
)
 | 
| [JavaScript]: | // Returns RegistrationOptions
RegistrationOptions.prototype.setOrigin = function(
    origin  // number
)
 | 
| [Java]: | public final RegistrationOptions setOrigin(
    int origin
)
 | 
| Parameters: | 
 | 
| Returns: | This RegistrationOptions so that you can chain calls to update values. | 
