📄 snmppdu.html
字号:
<TD><CODE><B><A HREF="../snmp/SNMPPDU.html#getErrorIndex()">getErrorIndex</A></B>()</CODE>
<BR>
A utility method that returns the error index for this PDU, identifying the problematic variable.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPPDU.html#getErrorStatus()">getErrorStatus</A></B>()</CODE>
<BR>
A utility method that extracts the error status for this PDU; if nonzero, can get index of problematic variable using getErrorIndex().</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPPDU.html#getPDUType()">getPDUType</A></B>()</CODE>
<BR>
A utility method that returns the PDU type of this PDU.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPPDU.html#getRequestID()">getRequestID</A></B>()</CODE>
<BR>
A utility method that extracts the request ID number from this PDU.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../snmp/SNMPSequence.html" title="class in snmp">SNMPSequence</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPPDU.html#getVarBindList()">getVarBindList</A></B>()</CODE>
<BR>
A utility method that extracts the variable binding list from the pdu.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_snmp.SNMPSequence"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class snmp.<A HREF="../snmp/SNMPSequence.html" title="class in snmp">SNMPSequence</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../snmp/SNMPSequence.html#addSNMPObject(snmp.SNMPObject)">addSNMPObject</A>, <A HREF="../snmp/SNMPSequence.html#extractFromBEREncoding(byte[])">extractFromBEREncoding</A>, <A HREF="../snmp/SNMPSequence.html#getBEREncoding()">getBEREncoding</A>, <A HREF="../snmp/SNMPSequence.html#getSNMPObjectAt(int)">getSNMPObjectAt</A>, <A HREF="../snmp/SNMPSequence.html#getValue()">getValue</A>, <A HREF="../snmp/SNMPSequence.html#insertSNMPObjectAt(snmp.SNMPObject, int)">insertSNMPObjectAt</A>, <A HREF="../snmp/SNMPSequence.html#setValue(java.lang.Object)">setValue</A>, <A HREF="../snmp/SNMPSequence.html#size()">size</A>, <A HREF="../snmp/SNMPSequence.html#toString()">toString</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_snmp.SNMPObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class snmp.<A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../snmp/SNMPObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../snmp/SNMPObject.html#hashCode()">hashCode</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="SNMPPDU(byte, int, int, int, snmp.SNMPSequence)"><!-- --></A><H3>
SNMPPDU</H3>
<PRE>
public <B>SNMPPDU</B>(byte pduType,
int requestID,
int errorStatus,
int errorIndex,
<A HREF="../snmp/SNMPSequence.html" title="class in snmp">SNMPSequence</A> varList)
throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Create a new PDU of the specified type, with given request ID, error status, and error index, and containing the supplied SNMP sequence as data.
<P>
<DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE></DL>
</DL>
<HR>
<A NAME="SNMPPDU(byte[], byte)"><!-- --></A><H3>
SNMPPDU</H3>
<PRE>
protected <B>SNMPPDU</B>(byte[] enc,
byte pduType)
throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Create a new PDU of the specified type from the supplied BER encoding.
<P>
<DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE> - Indicates invalid SNMP PDU encoding supplied in enc.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getVarBindList()"><!-- --></A><H3>
getVarBindList</H3>
<PRE>
public <A HREF="../snmp/SNMPSequence.html" title="class in snmp">SNMPSequence</A> <B>getVarBindList</B>()</PRE>
<DL>
<DD>A utility method that extracts the variable binding list from the pdu. Useful for retrieving the set of (object identifier, value) pairs returned in response to a request to an SNMP device. The variable binding list is just an SNMP sequence containing the identifier, value pairs.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../snmp/SNMPVarBindList.html" title="class in snmp"><CODE>SNMPVarBindList</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getRequestID()"><!-- --></A><H3>
getRequestID</H3>
<PRE>
public int <B>getRequestID</B>()</PRE>
<DL>
<DD>A utility method that extracts the request ID number from this PDU.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getErrorStatus()"><!-- --></A><H3>
getErrorStatus</H3>
<PRE>
public int <B>getErrorStatus</B>()</PRE>
<DL>
<DD>A utility method that extracts the error status for this PDU; if nonzero, can get index of problematic variable using getErrorIndex().
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getErrorIndex()"><!-- --></A><H3>
getErrorIndex</H3>
<PRE>
public int <B>getErrorIndex</B>()</PRE>
<DL>
<DD>A utility method that returns the error index for this PDU, identifying the problematic variable.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPDUType()"><!-- --></A><H3>
getPDUType</H3>
<PRE>
public byte <B>getPDUType</B>()</PRE>
<DL>
<DD>A utility method that returns the PDU type of this PDU.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SNMPPDU.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../snmp/SNMPOctetString.html" title="class in snmp"><B>PREV CLASS</B></A>
<A HREF="../snmp/SNMPRequestException.html" title="class in snmp"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?snmp/SNMPPDU.html" target="_top"><B>FRAMES</B></A>
<A HREF="SNMPPDU.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_snmp.SNMPSequence">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -