?? httpadv.html
字號:
return true; } <i>... handle elements here ...</i> // we don't know how to handle the element return false; } </code></pre></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/HTTPAdv.html#isClientEnabled()">isClientEnabled</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/HTTPAdv.html#isProxyEnabled()">isProxyEnabled</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/HTTPAdv.html#isServerEnabled()">isServerEnabled</A></B>()</CODE><BR> </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/impl/protocol/HTTPAdv.html#setClientEnabled(boolean)">setClientEnabled</A></B>(boolean enabled)</CODE><BR> </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/impl/protocol/HTTPAdv.html#setConfigMode(java.lang.String)">setConfigMode</A></B>(java.lang.String configMode)</CODE><BR> Sets the ConfigMode. </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/impl/protocol/HTTPAdv.html#setInterfaceAddress(java.lang.String)">setInterfaceAddress</A></B>(java.lang.String address)</CODE><BR> Returns the interfaceAddr. </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/impl/protocol/HTTPAdv.html#setPort(int)">setPort</A></B>(int port)</CODE><BR> Sets the port number to which server sockets are locally bound.</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/impl/protocol/HTTPAdv.html#setProxy(java.lang.String)">setProxy</A></B>(java.lang.String name)</CODE><BR> </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/impl/protocol/HTTPAdv.html#setProxyEnabled(boolean)">setProxyEnabled</A></B>(boolean enabled)</CODE><BR> </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/impl/protocol/HTTPAdv.html#setPublicAddressOnly(boolean)">setPublicAddressOnly</A></B>(boolean only)</CODE><BR> </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/impl/protocol/HTTPAdv.html#setServer(java.lang.String)">setServer</A></B>(java.lang.String name)</CODE><BR> </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/impl/protocol/HTTPAdv.html#setServerEnabled(boolean)">setServerEnabled</A></B>(boolean enabled)</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.protocol.TransportAdvertisement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.protocol.<A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html" title="class in net.jxta.protocol">TransportAdvertisement</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#getBaseAdvType()">getBaseAdvType</A>, <A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#getID()">getID</A>, <A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#getProtocol()">getProtocol</A>, <A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#setProtocol(java.lang.String)">setProtocol</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.document.Advertisement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.document.<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#clone()">clone</A>, <A HREF="../../../../net/jxta/document/Advertisement.html#getAdvType()">getAdvType</A>, <A HREF="../../../../net/jxta/document/Advertisement.html#toString()">toString</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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="HTTPAdv()"><!-- --></A><H3>HTTPAdv</H3><PRE>public <B>HTTPAdv</B>()</PRE><DL></DL><HR><A NAME="HTTPAdv(net.jxta.document.Element)"><!-- --></A><H3>HTTPAdv</H3><PRE>public <B>HTTPAdv</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> root)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAdvertisementType()"><!-- --></A><H3>getAdvertisementType</H3><PRE>public static java.lang.String <B>getAdvertisementType</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html" title="class in net.jxta.protocol">TransportAdvertisement</A></CODE></B></DD><DD>{@inheritDoc}<P><DD><DL></DL></DD></DL><HR><A NAME="handleElement(net.jxta.document.Element)"><!-- --></A><H3>handleElement</H3><PRE>protected boolean <B>handleElement</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> raw)</PRE><DL><DD>Process an individual element from the document during parse. Normally, implementations will allow the base advertisments a chance to handle the element before attempting ot handle the element themselves. ie. <p/><pre><code> protected boolean handleElement( Element elem ) { if ( super.handleElement() ) { // it's been handled. return true; } <i>... handle elements here ...</i> // we don't know how to handle the element return false; } </code></pre><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html#handleElement(net.jxta.document.Element)">handleElement</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html" title="class in net.jxta.document">ExtendableAdvertisement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>raw</CODE> - the element to be processed.<DT><B>Returns:</B><DD>true if the element was recognized, otherwise false.</DL></DD></DL><HR><A NAME="getDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getDocument</H3><PRE>public <A HREF="../../../../net/jxta/document/Document.html" title="interface in net.jxta.document">Document</A> <B>getDocument</B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> encodeAs)</PRE><DL><DD>Write advertisement into a document. <code>asMimeType</code> is a mime media-type specification and provides the form of the document which is being requested. Two standard document forms are defined. <code>"text/plain"</code> encodes the document in a "pretty-print" format for human viewing and <code>"text/xml"<code> which provides an XML format. <p/>We don't have any content to add, just build the document instance and return it to implementations that actually do something with it. <p/><emphasis>NB</emphasis>: we do not try to enforce dependency rules such as Proxy only when router, because we want to convey the complete configuration, even items corresponding to not currently enabled features. HttpTransport will gracefully disregard items that have no use in the current context.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html#getDocument(net.jxta.document.MimeMediaType)">getDocument</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html" title="class in net.jxta.document">ExtendableAdvertisement</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getInterfaceAddress()"><!-- --></A><H3>getInterfaceAddress</H3><PRE>public java.lang.String <B>getInterfaceAddress</B>()</PRE><DL><DD>Returns the interfaceAddr. That is, the ip of the IF to which to bind locally created sockets.<P><DD><DL><DT><B>Returns:</B><DD>string The address.</DL></DD></DL><HR><A NAME="setInterfaceAddress(java.lang.String)"><!-- --></A><H3>setInterfaceAddress</H3><PRE>public void <B>setInterfaceAddress</B>(java.lang.String address)</PRE><DL><DD>Returns the interfaceAddr. That is, the ip of the IF to which to bind locally created sockets.<P><DD><DL></DL></DD></DL><HR><A NAME="getConfigMode()"><!-- --></A><H3>getConfigMode</H3><PRE>public java.lang.String <B>getConfigMode</B>()</PRE><DL><DD>Returns the ConfigMode. That is, the way the user prefers to configure the interface address:
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -