uk.co.westhawk.snmp.stack
Interface SnmpContextFace
- All Superinterfaces:
- SnmpContextBasisFace
- All Known Subinterfaces:
- SnmpContextv2cFace
- All Known Implementing Classes:
- SnmpContext, SnmpContextPool, SnmpContextv2c, SnmpContextv2cPool
- public interface SnmpContextFace
- extends SnmpContextBasisFace
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:
SnmpContext
,
SnmpContextv2c
,
SnmpContextv3
Method Summary |
java.lang.String |
getCommunity()
Returns the community name. |
void |
setCommunity(java.lang.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 |
version_id
public static final java.lang.String version_id
- See Also:
- Constant Field Values
DEFAULT_COMMUNITY
public static final java.lang.String DEFAULT_COMMUNITY
- The default community name. This is public.
- See Also:
- Constant Field Values
getCommunity
public java.lang.String getCommunity()
- Returns the community name.
setCommunity
public void setCommunity(java.lang.String newCommunity)
- 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:
DEFAULT_COMMUNITY