|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.PDU
org.snmp4j.ScopedPDU
public class ScopedPDU
The ScopedPDU class represents a SNMPv3 scoped PDU.
| Field Summary |
|---|
| Fields inherited from class org.snmp4j.PDU |
|---|
authorizationError, badValue, commitFailed, errorIndex, errorStatus, genErr, GET, GETBULK, GETNEXT, inconsistentName, inconsistentValue, INFORM, noAccess, noCreation, noError, noSuchName, NOTIFICATION, notWritable, readOnly, REPORT, requestID, resourceUnavailable, RESPONSE, SET, tooBig, TRAP, type, undoFailed, V1TRAP, variableBindings, wrongEncoding, wrongLength, wrongType, wrongValue |
| Constructor Summary | |
|---|---|
ScopedPDU()
Create a empty ScopedPDU. |
|
ScopedPDU(ScopedPDU other)
Copy constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
void |
decodeBER(BERInputStream inputStream)
Decodes a Variable from an InputStream. |
void |
encodeBER(java.io.OutputStream outputStream)
Encodes a Variable to an OutputStream. |
int |
getBERLength()
Returns the length of this BERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER). |
int |
getBERPayloadLength()
Returns the length of the payload of this BERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER). |
OctetString |
getContextEngineID()
Gets the context engine ID of this scoped PDU. |
OctetString |
getContextName()
Gets the context name of this scoped PDU. |
void |
setContextEngineID(OctetString contextEngineID)
Sets the context engine ID field of the scoped PDU. |
void |
setContextName(OctetString contextName)
Sets the context name field of this scoped PDU. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class org.snmp4j.PDU |
|---|
add, addAll, addAllOIDs, addOID, clear, get, getBERPayloadLengthPDU, getErrorIndex, getErrorStatus, getErrorStatusText, getMaxRepetitions, getNonRepeaters, getRequestID, getType, getTypeFromString, getTypeString, getVariableBindings, isConfirmedPdu, remove, set, setErrorIndex, setErrorStatus, setMaxRepetitions, setNonRepeaters, setRequestID, setType, size, toArray, toErrorStatusText, trim |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScopedPDU()
public ScopedPDU(ScopedPDU other)
other - a ScopedPDU instance.| Method Detail |
|---|
public void setContextEngineID(OctetString contextEngineID)
contextEngineID - an OctetString instance (must not be null).
java.lang.NullPointerException - if contextEngineID == nullpublic OctetString getContextEngineID()
OctetString instance.public void setContextName(OctetString contextName)
contextName - an OctetString instance (must not be null).public OctetString getContextName()
OctetString instance.public int getBERLength()
BERSerializableBERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER).
getBERLength in interface BERSerializablegetBERLength in class PDUpublic int getBERPayloadLength()
BERSerializableBERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER).
getBERPayloadLength in interface BERSerializablegetBERPayloadLength in class PDU
public void encodeBER(java.io.OutputStream outputStream)
throws java.io.IOException
BERSerializableVariable to an OutputStream.
encodeBER in interface BERSerializableencodeBER in class PDUoutputStream - an OutputStream.
java.io.IOException - if an error occurs while writing to the stream.public java.lang.Object clone()
clone in class PDU
public void decodeBER(BERInputStream inputStream)
throws java.io.IOException
Variable from an InputStream.
decodeBER in interface BERSerializabledecodeBER in class PDUinputStream - an InputStream containing a BER encoded
byte stream.
java.io.IOExceptionpublic java.lang.String toString()
toString in class PDU
|
Copyright 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||