📄 jxtaserverpipe.html
字号:
<BR> Gets the PipeAdvertisement associated with this JxtaServerPipe</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/util/JxtaServerPipe.html#getPipeTimeout()">getPipeTimeout</A></B>()</CODE><BR> Gets the Timeout attribute of the JxtaServerPipe</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/util/JxtaServerPipe.html#isBound()">isBound</A></B>()</CODE><BR> Returns the binding state of the JxtaServerPipe.</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/util/JxtaServerPipe.html#isClosed()">isClosed</A></B>()</CODE><BR> Returns the closed state of the JxtaServerPipe.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/util/JxtaServerPipe.html#newInputPipe(net.jxta.peergroup.PeerGroup, net.jxta.protocol.PipeAdvertisement)">newInputPipe</A></B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeadv)</CODE><BR> Utility method newInputPipe is used to get new pipe advertisement (w/random pipe ID) from old one. </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/util/JxtaServerPipe.html#pipeMsgEvent(net.jxta.pipe.PipeMsgEvent)">pipeMsgEvent</A></B>(<A HREF="../../../net/jxta/pipe/PipeMsgEvent.html" title="class in net.jxta.pipe">PipeMsgEvent</A> event)</CODE><BR> when request messages arrive this method is called</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/util/JxtaServerPipe.html#sendResponseMessage(net.jxta.peergroup.PeerGroup, net.jxta.endpoint.Messenger, net.jxta.protocol.PipeAdvertisement)">sendResponseMessage</A></B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A> msgr, <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeAd)</CODE><BR> Method sendResponseMessage get the createResponseMessage and sends it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/util/JxtaServerPipe.html#setBound()">setBound</A></B>()</CODE><BR> Sets the bound attribute of the JxtaServerPipe</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/util/JxtaServerPipe.html#setPipeTimeout(int)">setPipeTimeout</A></B>(int timeout)</CODE><BR> Sets the Timeout attribute of the JxtaServerPipe a timeout of 0 blocks forever, by default this JxtaServerPipe's timeout is set to 60000 ms</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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="nameSpace"><!-- --></A><H3>nameSpace</H3><PRE>protected static final java.lang.String <B>nameSpace</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.util.JxtaServerPipe.nameSpace">Constant Field Values</A></DL></DL><HR><A NAME="credTag"><!-- --></A><H3>credTag</H3><PRE>protected static final java.lang.String <B>credTag</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.util.JxtaServerPipe.credTag">Constant Field Values</A></DL></DL><HR><A NAME="reqPipeTag"><!-- --></A><H3>reqPipeTag</H3><PRE>protected static final java.lang.String <B>reqPipeTag</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.util.JxtaServerPipe.reqPipeTag">Constant Field Values</A></DL></DL><HR><A NAME="remPeerTag"><!-- --></A><H3>remPeerTag</H3><PRE>protected static final java.lang.String <B>remPeerTag</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.util.JxtaServerPipe.remPeerTag">Constant Field Values</A></DL></DL><HR><A NAME="remPipeTag"><!-- --></A><H3>remPipeTag</H3><PRE>protected static final java.lang.String <B>remPipeTag</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.util.JxtaServerPipe.remPipeTag">Constant Field Values</A></DL></DL><HR><A NAME="closeTag"><!-- --></A><H3>closeTag</H3><PRE>protected static final java.lang.String <B>closeTag</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.util.JxtaServerPipe.closeTag">Constant Field Values</A></DL></DL><HR><A NAME="reliableTag"><!-- --></A><H3>reliableTag</H3><PRE>protected static final java.lang.String <B>reliableTag</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.util.JxtaServerPipe.reliableTag">Constant Field Values</A></DL></DL><!-- ========= 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="JxtaServerPipe(net.jxta.peergroup.PeerGroup, net.jxta.protocol.PipeAdvertisement)"><!-- --></A><H3>JxtaServerPipe</H3><PRE>public <B>JxtaServerPipe</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeadv) throws java.io.IOException</PRE><DL><DD>Default constructor for the JxtaServerPipe <p> backlog default of 50 <p> timeout defaults to 60 seconds, i.e. blocking. <p><P><DT><B>Parameters:</B><DD><CODE>group</CODE> - JXTA PeerGroup<DD><CODE>pipeadv</CODE> - PipeAdvertisement on which pipe requests are accepted<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL><HR><A NAME="JxtaServerPipe(net.jxta.peergroup.PeerGroup, net.jxta.protocol.PipeAdvertisement, int, int)"><!-- --></A><H3>JxtaServerPipe</H3><PRE>public <B>JxtaServerPipe</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeadv, int backlog, int timeout) throws java.io.IOException</PRE><DL><DD>Constructor for the JxtaServerPipe<P><DT><B>Parameters:</B><DD><CODE>group</CODE> - JXTA PeerGroup<DD><CODE>pipeadv</CODE> - PipeAdvertisement on which pipe requests are accepted<DD><CODE>backlog</CODE> - the maximum length of the queue.<DD><CODE>timeout</CODE> - the specified timeout, in milliseconds<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL><HR><A NAME="JxtaServerPipe(net.jxta.peergroup.PeerGroup, net.jxta.protocol.PipeAdvertisement, int)"><!-- --></A><H3>JxtaServerPipe</H3><PRE>public <B>JxtaServerPipe</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeadv, int backlog) throws java.io.IOException</PRE><DL><DD>Constructor for the JxtaServerPipe object<P><DT><B>Parameters:</B><DD><CODE>group</CODE> - JXTA PeerGroup<DD><CODE>pipeadv</CODE> - PipeAdvertisement on which pipe requests are accepted<DD><CODE>backlog</CODE> - the maximum length of the queue.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</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="bind(net.jxta.peergroup.PeerGroup, net.jxta.protocol.PipeAdvertisement)"><!-- --></A><H3>bind</H3><PRE>public void <B>bind</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeadv) throws java.io.IOException</PRE><DL><DD>Binds the <code>JxtaServerPipe</code> to a specific pipe advertisement<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - JXTA PeerGroup<DD><CODE>pipeadv</CODE> - PipeAdvertisement on which pipe requests are accepted<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL></DD></DL><HR><A NAME="bind(net.jxta.peergroup.PeerGroup, net.jxta.protocol.PipeAdvertisement, int)"><!-- --></A><H3>bind</H3><PRE>public void <B>bind</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeadv, int backlog) throws java.io.IOException</PRE><DL><DD>Binds the <code>JxtaServerPipe</code> to a specific pipe advertisement<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - JXTA PeerGroup<DD><CODE>pipeadv</CODE> - PipeAdvertisement on which pipe requests are accepted<DD><CODE>backlog</CODE> - the maximum length of the queue.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL></DD></DL><HR><A NAME="accept()"><!-- --></A><H3>accept</H3><PRE>public <A HREF="../../../net/jxta/util/JxtaBiDiPipe.html" title="class in net.jxta.util">JxtaBiDiPipe</A> <B>accept</B>() throws java.io.IOException</PRE><DL><DD>Listens for a connection to be made to this socket and accepts
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -