📄 cms.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#LIST_REQUEST">LIST_REQUEST</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#LIST_RESULT">LIST_RESULT</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private <A HREF="../../../net/jxta/share/ListMessageProcessor.html" title="class in net.jxta.share">ListMessageProcessor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#listQueue">listQueue</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static <A HREF="http://logging.apache.org/log4j/docs/api/org/apache/log4j/Logger.html" title="class or interface in org.apache.log4j">Logger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#LOG">LOG</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#MESSAGE_TYPE">MESSAGE_TYPE</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#QUERY_SUBSTRING">QUERY_SUBSTRING</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#RANGE_BEGIN">RANGE_BEGIN</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#RANGE_END">RANGE_END</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#REQUEST_ID">REQUEST_ID</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#RETURN_ADDRESS">RETURN_ADDRESS</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#serviceName">serviceName</A></B></CODE><BR> </TD></TR></TABLE> <A NAME="fields_inherited_from_class_net.jxta.platform.Module"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from interface net.jxta.platform.<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/platform/Module.html" title="class or interface in net.jxta.platform">Module</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/platform/Module.html#START_AGAIN_PROGRESS" title="class or interface in net.jxta.platform">START_AGAIN_PROGRESS</A>, <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/platform/Module.html#START_AGAIN_STALLED" title="class or interface in net.jxta.platform">START_AGAIN_STALLED</A>, <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/platform/Module.html#START_OK" title="class or interface in net.jxta.platform">START_OK</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#CMS()">CMS</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#addSearchListener(net.jxta.share.SearchListener)">addSearchListener</A></B>(<A HREF="../../../net/jxta/share/SearchListener.html" title="interface in net.jxta.share">SearchListener</A> sl)</CODE><BR> Add a SearchListener object to monitor the search queries recieved.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../net/jxta/share/ContentAdvertisement.html" title="class in net.jxta.share">ContentAdvertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#createContentAdvertisement(java.io.InputStream)">createContentAdvertisement</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> is)</CODE><BR> Returns a ContentAdvertisement create from the given stream</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#finalize()">finalize</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#forgetContent(net.jxta.share.Content)">forgetContent</A></B>(<A HREF="../../../net/jxta/share/Content.html" title="interface in net.jxta.share">Content</A> content)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../net/jxta/share/ContentManager.html" title="class in net.jxta.share">ContentManager</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#getContentManager()">getContentManager</A></B>()</CODE><BR> Returns the Content Manager for this service.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#getEndpointAddress()">getEndpointAddress</A></B>()</CODE><BR> Returns the endpoint address for this service.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/endpoint/EndpointService.html" title="class or interface in net.jxta.endpoint">EndpointService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#getEndpointService()">getEndpointService</A></B>()</CODE><BR> Returns the EndpointService for this service.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#getGroupId(net.jxta.peergroup.PeerGroup)">getGroupId</A></B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/peergroup/PeerGroup.html" title="class or interface in net.jxta.peergroup">PeerGroup</A> group)</CODE><BR> Returns the String version of the groupId for the given group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#getPeerId(net.jxta.peergroup.PeerGroup)">getPeerId</A></B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/peergroup/PeerGroup.html" title="class or interface in net.jxta.peergroup">PeerGroup</A> group)</CODE><BR> Returns the String version of the groupId for the given group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A></B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/peergroup/PeerGroup.html" title="class or interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/id/ID.html" title="class or interface in net.jxta.id">ID</A> assignedID, <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/Advertisement.html" title="class or interface in net.jxta.document">Advertisement</A> impl)</CODE><BR> Initialize the application passing it ist peer group handle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#popString(net.jxta.endpoint.Message, java.lang.String)">popString</A></B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/endpoint/Message.html" title="class or interface in net.jxta.endpoint">Message</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> tag)</CODE><BR> Returns the String contained in the given tag in the given Message.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#processIncomingMessage(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)">processIncomingMessage</A></B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/endpoint/Message.html" title="class or interface in net.jxta.endpoint">Message</A> message, <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/endpoint/EndpointAddress.html" title="class or interface in net.jxta.endpoint">EndpointAddress</A> srcAddr, <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/endpoint/EndpointAddress.html" title="class or interface in net.jxta.endpoint">EndpointAddress</A> dstAddr)</CODE><BR> </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="../../../net/jxta/share/CMS.html#processQuery(net.jxta.protocol.ResolverQueryMsg)">processQuery</A></B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/protocol/ResolverQueryMsg.html" title="class or interface in net.jxta.protocol">ResolverQueryMsg</A> query)</CODE><BR> Process the resolver query, and generate response</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#processResponse(net.jxta.protocol.ResolverResponseMsg)">processResponse</A></B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/protocol/ResolverResponseMsg.html" title="class or interface in net.jxta.protocol">ResolverResponseMsg</A> response)</CODE><BR> call back method, when messages are received by the ResolverService it calls back this method to deal with received responses</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#publishAllContents()">publishAllContents</A></B>()</CODE><BR> Publish into Discovery the ContentAdvertisement of the ContentManager.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/share/CMS.html#publishContent(net.jxta.share.Content)">publishContent</A></B>(<A HREF="../../../net/jxta/share/Content.html" title="interface in net.jxta.share">Content</A> content)</CODE><BR> Publish into Discovery the ContentAdvertisement of the ContentManager.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -