📄 snmpv1trappdu.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../snmp/SNMPIPAddress.html" title="class in snmp">SNMPIPAddress</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1TrapPDU.html#getAgentAddress()">getAgentAddress</A></B>()</CODE>
<BR>
A utility method that extracts the sending agent address this PDU.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../snmp/SNMPObjectIdentifier.html" title="class in snmp">SNMPObjectIdentifier</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1TrapPDU.html#getEnterpriseOID()">getEnterpriseOID</A></B>()</CODE>
<BR>
A utility method that extracts the enterprise OID from 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/SNMPv1TrapPDU.html#getGenericTrap()">getGenericTrap</A></B>()</CODE>
<BR>
A utility method that returns the generic trap code for 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/SNMPv1TrapPDU.html#getSpecificTrap()">getSpecificTrap</A></B>()</CODE>
<BR>
A utility method that returns the specific trap code for this PDU.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1TrapPDU.html#getTimestamp()">getTimestamp</A></B>()</CODE>
<BR>
A utility method that returns the timestamp for 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/SNMPv1TrapPDU.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="SNMPv1TrapPDU(snmp.SNMPObjectIdentifier, snmp.SNMPIPAddress, int, int, snmp.SNMPTimeTicks, snmp.SNMPSequence)"><!-- --></A><H3>
SNMPv1TrapPDU</H3>
<PRE>
public <B>SNMPv1TrapPDU</B>(<A HREF="../snmp/SNMPObjectIdentifier.html" title="class in snmp">SNMPObjectIdentifier</A> enterpriseOID,
<A HREF="../snmp/SNMPIPAddress.html" title="class in snmp">SNMPIPAddress</A> agentAddress,
int genericTrap,
int specificTrap,
<A HREF="../snmp/SNMPTimeTicks.html" title="class in snmp">SNMPTimeTicks</A> timestamp,
<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 Trap 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="SNMPv1TrapPDU(snmp.SNMPObjectIdentifier, snmp.SNMPIPAddress, int, int, snmp.SNMPTimeTicks)"><!-- --></A><H3>
SNMPv1TrapPDU</H3>
<PRE>
public <B>SNMPv1TrapPDU</B>(<A HREF="../snmp/SNMPObjectIdentifier.html" title="class in snmp">SNMPObjectIdentifier</A> enterpriseOID,
<A HREF="../snmp/SNMPIPAddress.html" title="class in snmp">SNMPIPAddress</A> agentAddress,
int genericTrap,
int specificTrap,
<A HREF="../snmp/SNMPTimeTicks.html" title="class in snmp">SNMPTimeTicks</A> timestamp)
throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Create a new Trap PDU of the specified type, with given request ID, error status, and error index, and containing an empty SNMP sequence (VarBindList) as additional 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="SNMPv1TrapPDU(byte[])"><!-- --></A><H3>
SNMPv1TrapPDU</H3>
<PRE>
protected <B>SNMPv1TrapPDU</B>(byte[] enc)
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="getEnterpriseOID()"><!-- --></A><H3>
getEnterpriseOID</H3>
<PRE>
public <A HREF="../snmp/SNMPObjectIdentifier.html" title="class in snmp">SNMPObjectIdentifier</A> <B>getEnterpriseOID</B>()</PRE>
<DL>
<DD>A utility method that extracts the enterprise OID from this PDU.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getAgentAddress()"><!-- --></A><H3>
getAgentAddress</H3>
<PRE>
public <A HREF="../snmp/SNMPIPAddress.html" title="class in snmp">SNMPIPAddress</A> <B>getAgentAddress</B>()</PRE>
<DL>
<DD>A utility method that extracts the sending agent address this PDU.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getGenericTrap()"><!-- --></A><H3>
getGenericTrap</H3>
<PRE>
public int <B>getGenericTrap</B>()</PRE>
<DL>
<DD>A utility method that returns the generic trap code for this PDU.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSpecificTrap()"><!-- --></A><H3>
getSpecificTrap</H3>
<PRE>
public int <B>getSpecificTrap</B>()</PRE>
<DL>
<DD>A utility method that returns the specific trap code for this PDU.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getTimestamp()"><!-- --></A><H3>
getTimestamp</H3>
<PRE>
public long <B>getTimestamp</B>()</PRE>
<DL>
<DD>A utility method that returns the timestamp for 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/SNMPv1TrapPDU.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/SNMPv1TrapListener.html" title="interface in snmp"><B>PREV CLASS</B></A>
<A HREF="../snmp/SNMPv2BulkRequestPDU.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/SNMPv1TrapPDU.html" target="_top"><B>FRAMES</B></A>
<A HREF="SNMPv1TrapPDU.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 + -