⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snmpv1trappdu.html

📁 snmp inquistor Pour la communication avec les agents SNMP on utilise un package Java open source
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1TrapPDU.html#getGenericTrap()">getGenericTrap</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1TrapPDU.html#getSpecificTrap()">getSpecificTrap</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1TrapPDU.html#getTimestamp()">getTimestamp</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A utility method that extracts the variable binding list from the pdu.</TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;<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>
&nbsp;<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>
&nbsp;
<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>&nbsp;enterpriseOID,
                     <A HREF="../snmp/SNMPIPAddress.html" title="class in snmp">SNMPIPAddress</A>&nbsp;agentAddress,
                     int&nbsp;genericTrap,
                     int&nbsp;specificTrap,
                     <A HREF="../snmp/SNMPTimeTicks.html" title="class in snmp">SNMPTimeTicks</A>&nbsp;timestamp,
                     <A HREF="../snmp/SNMPSequence.html" title="class in snmp">SNMPSequence</A>&nbsp;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>&nbsp;enterpriseOID,
                     <A HREF="../snmp/SNMPIPAddress.html" title="class in snmp">SNMPIPAddress</A>&nbsp;agentAddress,
                     int&nbsp;genericTrap,
                     int&nbsp;specificTrap,
                     <A HREF="../snmp/SNMPTimeTicks.html" title="class in snmp">SNMPTimeTicks</A>&nbsp;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[]&nbsp;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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SNMPv1TrapPDU.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../snmp/SNMPv1TrapListener.html" title="interface in snmp"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<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>  &nbsp;
&nbsp;<A HREF="SNMPv1TrapPDU.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_snmp.SNMPSequence">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -