|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.mp.MPv3.HeaderData
protected static class MPv3.HeaderData
The HeaderData
represents the message header information
of SNMPv3 message.
Field Summary | |
---|---|
static byte |
FLAG_AUTH
|
static byte |
FLAG_PRIV
|
Constructor Summary | |
---|---|
protected |
MPv3.HeaderData()
|
Method Summary | |
---|---|
void |
decodeBER(BERInputStream message)
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). |
int |
getMsgFlags()
|
int |
getMsgID()
|
int |
getMsgMaxSize()
|
int |
getSecurityModel()
|
void |
setMsgFlags(int flags)
|
void |
setMsgID(int msgID)
|
void |
setMsgMaxSize(int msgMaxSize)
|
void |
setSecurityModel(int model)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte FLAG_AUTH
public static final byte FLAG_PRIV
Constructor Detail |
---|
protected MPv3.HeaderData()
Method Detail |
---|
public void setMsgID(int msgID)
public int getMsgID()
public void setMsgMaxSize(int msgMaxSize)
public int getMsgMaxSize()
public void setMsgFlags(int flags)
public int getMsgFlags()
public void setSecurityModel(int model)
public int getSecurityModel()
public int getBERPayloadLength()
BERSerializable
BERSerializable
object
in bytes when encoded according to the Basic Encoding Rules (BER).
getBERPayloadLength
in interface BERSerializable
public int getBERLength()
BERSerializable
BERSerializable
object
in bytes when encoded according to the Basic Encoding Rules (BER).
getBERLength
in interface BERSerializable
public void decodeBER(BERInputStream message) throws java.io.IOException
BERSerializable
Variable
from an InputStream
.
decodeBER
in interface BERSerializable
message
- an InputStream
containing a BER encoded byte stream.
java.io.IOException
- if the stream could not be decoded by using BER rules.public void encodeBER(java.io.OutputStream outputStream) throws java.io.IOException
BERSerializable
Variable
to an OutputStream
.
encodeBER
in interface BERSerializable
outputStream
- an OutputStream
.
java.io.IOException
- if an error occurs while writing to the stream.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |