Package org.snmp4j.agent
Interface RequestHandler<R extends Request>
public interface RequestHandler<R extends Request>
A request handler is able to process a request on behalf of the managed
object repository represented by a
MOServer
.- Version:
- 1.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isSupported
(int pduType) Checks whether the supplied PDU type is supported by this request handler.void
processPdu
(R request, MOServer server) Processes a request on behalf of the suppliedMOServer
.
-
Method Details
-
isSupported
boolean isSupported(int pduType) Checks whether the supplied PDU type is supported by this request handler.- Parameters:
pduType
- a PDU type as defined byPDU
.- Returns:
true
if the PDU type is supported.
-
processPdu
Processes a request on behalf of the suppliedMOServer
.- Parameters:
request
- aRequest
instance.server
- aMOServer
containing the managed objects accessible by the request.
-