controlservices
Class ProtocolHandler

public class ProtocolHandler
extends Thread
implements ProxyConstants

Title: ProtocolHandler

Description: This class acts as the main handler for incoming UDP packets, making descisions on how the SNMP Proxy should respond to different incoming SNMP requests. In general, one Protocol Handler is created for every incoming UDP message.

Copyright: Copyright (c) 2002

Company: Printronix

Version:
1.0
Author:
Christopher M. King (kingc@uci.edu)
Constructor Detail

ProtocolHandler

public ProtocolHandler(DatagramPacket dP,
                       UDPComManager uCM,
                       ProxySecurityManager secM,
                       ProxySessionManager sesM,
                       ProxyLog log,
                       int timeout)
Runs the thread of the ProtocolHandler, the main controller for handling and incoming UDP packet

Method Detail

run

public void run()
Runs the thread of the ProtocolHandler, the main controller for handling and incoming UDP packet

requestHandler

private SNMPMessageInfo requestHandler(SNMPMessageInfo requestInfo)
Processes an SNMP request and sends it to the appropropriate message handler to generate an SNMP response
Parameters:
requestInfo - contains the request to process
Returns:
an SNMPMessageInfo containing the appropriate SNMP response to the request made.