com.caucho.server.snmp
Class SnmpProtocol

java.lang.Object
  extended by com.caucho.server.port.Protocol
      extended by com.caucho.server.snmp.SnmpProtocol
All Implemented Interfaces:
RequestFactory

public class SnmpProtocol
extends Protocol


Constructor Summary
SnmpProtocol()
           
 
Method Summary
 void addOid(Oid oid)
           
 ServerRequest createRequest(Connection connection)
          Create a Request object for the new thread.
 java.lang.String getCommunity()
           
 java.util.HashMap<java.lang.String,Oid> getMib()
           
 java.lang.String getProtocolName()
          Returns the protocol name.
 void setCommunity(java.lang.String s)
           
 void setParent(Port port)
          Sets the containing port.
 void setProtocolName(java.lang.String name)
          Sets the protocol name.
 
Methods inherited from class com.caucho.server.port.Protocol
addText, getPort, getServer, setServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpProtocol

public SnmpProtocol()
Method Detail

setParent

public void setParent(Port port)
Sets the containing port.

Overrides:
setParent in class Protocol

getProtocolName

public java.lang.String getProtocolName()
Returns the protocol name.

Specified by:
getProtocolName in interface RequestFactory
Overrides:
getProtocolName in class Protocol

setProtocolName

public void setProtocolName(java.lang.String name)
Sets the protocol name.

Overrides:
setProtocolName in class Protocol

addOid

public void addOid(Oid oid)
            throws java.lang.Exception
Throws:
java.lang.Exception

getMib

public java.util.HashMap<java.lang.String,Oid> getMib()

getCommunity

public java.lang.String getCommunity()

setCommunity

public void setCommunity(java.lang.String s)

createRequest

public ServerRequest createRequest(Connection connection)
Description copied from class: Protocol
Create a Request object for the new thread.

Specified by:
createRequest in interface RequestFactory
Overrides:
createRequest in class Protocol