public final class DhcpPlugin extends AbstractPlugin
This class is designed to be used by the capabilities daemon to test if a remote interface is running a functional DHCP server as defined by RFC 2131. This class relies on the DHCP API provided by JDHCP v1.1.1. (please refer to http://www.dhcp.org/javadhcp). The class implements the Plugin interface that allows it to be used along with other plugins by the daemon.
Constructor and Description |
---|
DhcpPlugin() |
Modifier and Type | Method and Description |
---|---|
String |
getProtocolName()
This method returns the name of the protocol supported by this plugin.
|
boolean |
isProtocolSupported(InetAddress host)
Returns true if the protocol defined by this plugin is supported.
|
boolean |
isProtocolSupported(InetAddress host,
Map<String,Object> qualifiers)
Returns true if the protocol defined by this plugin is supported.
|
public String getProtocolName()
getProtocolName
in interface Plugin
getProtocolName
in class AbstractPlugin
public boolean isProtocolSupported(InetAddress host)
isProtocolSupported
in interface Plugin
isProtocolSupported
in class AbstractPlugin
host
- The address to check for support.public boolean isProtocolSupported(InetAddress host, Map<String,Object> qualifiers)
isProtocolSupported
in interface Plugin
isProtocolSupported
in class AbstractPlugin
host
- The address to check for support.qualifiers
- The map where qualification are set by the plugin.Copyright © 2017. All rights reserved.