Package uk.co.westhawk.snmp.stack
Interface SnmpContextFace
- All Superinterfaces:
 SnmpContextBasisFace
- All Known Subinterfaces:
 SnmpContextv2cFace
- All Known Implementing Classes:
 PassiveSnmpContext,PassiveSnmpContextv2c,SnmpContext,SnmpContextPool,SnmpContextv2c,SnmpContextv2cPool
This interface contains the (basic) SNMP context interface that is needed 
 by every PDU to send a SNMP v1 request. The context also
 provides functionality to receive incoming PDUs.
- Version:
 - $Revision: 3.13 $ $Date: 2006/02/09 14:19:05 $
 - Author:
 - Tim Panton
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default community name.static final StringFields inherited from interface uk.co.westhawk.snmp.stack.SnmpContextBasisFace
DEFAULT_PORT, MAXPDU, MSS, STANDARD_SOCKET, TCP_SOCKET - 
Method Summary
Modifier and TypeMethodDescriptionReturns the community name.voidsetCommunity(String newCommunity) Sets the community name.Methods inherited from interface uk.co.westhawk.snmp.stack.SnmpContextBasisFace
addPdu, addRequestPduListener, addRequestPduListener, addRequestPduListener, addTrapListener, addTrapListener, addTrapListener, clone, destroy, encodePacket, getBindAddress, getHashKey, getHost, getPort, getReceivedFromHostAddress, getSendToHostAddress, getTypeSocket, getVersion, isDestroyed, processIncomingPdu, removePdu, removeRequestPduListener, removeRequestPduListener, removeRequestPduListener, removeTrapListener, removeTrapListener, removeTrapListener, sendPacket 
- 
Field Details
- 
version_id
- See Also:
 
 - 
DEFAULT_COMMUNITY
The default community name. This is public.- See Also:
 
 
 - 
 - 
Method Details
- 
getCommunity
String getCommunity()Returns the community name. - 
setCommunity
Sets the community name. This community name will be used for all PDUs sent with this context. The default community name is public.- See Also:
 
 
 -