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

📄 snmpmessage.html

📁 snmp inquistor Pour la communication avec les agents SNMP on utilise un package Java open source
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../snmp/SNMPv2TrapPDU.html" title="class in snmp">SNMPv2TrapPDU</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPMessage.html#getv2TrapPDU()">getv2TrapPDU</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility method which returns the PDU contained in the SNMP message as an SNMPv2TrapPDU.</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="SNMPMessage(int, java.lang.String, snmp.SNMPPDU)"><!-- --></A><H3>
SNMPMessage</H3>
<PRE>
public <B>SNMPMessage</B>(int&nbsp;version,
                   java.lang.String&nbsp;community,
                   <A HREF="../snmp/SNMPPDU.html" title="class in snmp">SNMPPDU</A>&nbsp;pdu)</PRE>
<DL>
<DD>Create an SNMP message with specified version, community, and pdu.    Use version = 0 for SNMP version 1, or version = 1 for enhanced capapbilities    provided through RFC 1157.
<P>
</DL>
<HR>

<A NAME="SNMPMessage(int, java.lang.String, snmp.SNMPv1TrapPDU)"><!-- --></A><H3>
SNMPMessage</H3>
<PRE>
public <B>SNMPMessage</B>(int&nbsp;version,
                   java.lang.String&nbsp;community,
                   <A HREF="../snmp/SNMPv1TrapPDU.html" title="class in snmp">SNMPv1TrapPDU</A>&nbsp;pdu)</PRE>
<DL>
<DD>Create an SNMP message with specified version, community, and trap pdu.    Use version = 0 for SNMP version 1, or version = 1 for enhanced capapbilities    provided through RFC 1157.
<P>
</DL>
<HR>

<A NAME="SNMPMessage(int, java.lang.String, snmp.SNMPv2TrapPDU)"><!-- --></A><H3>
SNMPMessage</H3>
<PRE>
public <B>SNMPMessage</B>(int&nbsp;version,
                   java.lang.String&nbsp;community,
                   <A HREF="../snmp/SNMPv2TrapPDU.html" title="class in snmp">SNMPv2TrapPDU</A>&nbsp;pdu)</PRE>
<DL>
<DD>Create an SNMP message with specified version, community, and v2 trap pdu.    Use version = 1.
<P>
</DL>
<HR>

<A NAME="SNMPMessage(byte[])"><!-- --></A><H3>
SNMPMessage</H3>
<PRE>
protected <B>SNMPMessage</B>(byte[]&nbsp;enc)
               throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Construct an SNMPMessage from a received ASN.1 byte representation.
<P>
<DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE> - Indicates invalid SNMP message encoding supplied.</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="getPDUAsObject()"><!-- --></A><H3>
getPDUAsObject</H3>
<PRE>
public java.lang.Object <B>getPDUAsObject</B>()
                                throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Utility method which returns the PDU contained in the SNMP message as a plain Java Object.      The pdu is the third component of the sequence, after the version and community name.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getPDU()"><!-- --></A><H3>
getPDU</H3>
<PRE>
public <A HREF="../snmp/SNMPPDU.html" title="class in snmp">SNMPPDU</A> <B>getPDU</B>()
               throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Utility method which returns the PDU contained in the SNMP message. The pdu is the third component     of the sequence, after the version and community name.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getv1TrapPDU()"><!-- --></A><H3>
getv1TrapPDU</H3>
<PRE>
public <A HREF="../snmp/SNMPv1TrapPDU.html" title="class in snmp">SNMPv1TrapPDU</A> <B>getv1TrapPDU</B>()
                           throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Utility method which returns the PDU contained in the SNMP message as an SNMPv1TrapPDU. The pdu is the    third component of the sequence, after the version and community name.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getv2TrapPDU()"><!-- --></A><H3>
getv2TrapPDU</H3>
<PRE>
public <A HREF="../snmp/SNMPv2TrapPDU.html" title="class in snmp">SNMPv2TrapPDU</A> <B>getv2TrapPDU</B>()
                           throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Utility method which returns the PDU contained in the SNMP message as an SNMPv2TrapPDU. The pdu is the    third component of the sequence, after the version and community name.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getCommunityName()"><!-- --></A><H3>
getCommunityName</H3>
<PRE>
public java.lang.String <B>getCommunityName</B>()
                                  throws <A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Utility method which returns the community name contained in the SNMP message. The community name is the    second component of the sequence, after the version.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE></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/SNMPMessage.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/SNMPIPAddress.html" title="class in snmp"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../snmp/SNMPNSAPAddress.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/SNMPMessage.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SNMPMessage.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 + -