Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / WWW / Doc / Programmer / api / org / w3c / www / mux / SampleMuxHandler.html
diff --git a/JMCR-Stable/real-world application/jigsaw/WWW/Doc/Programmer/api/org/w3c/www/mux/SampleMuxHandler.html b/JMCR-Stable/real-world application/jigsaw/WWW/Doc/Programmer/api/org/w3c/www/mux/SampleMuxHandler.html
new file mode 100644 (file)
index 0000000..2e35d9a
--- /dev/null
@@ -0,0 +1,549 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
+<!--NewPage-->\r
+<HTML>\r
+<HEAD>\r
+<!-- Generated by javadoc (build 1.5.0_11) on Tue Apr 10 15:02:53 UTC 2007 -->\r
+<TITLE>\r
+SampleMuxHandler\r
+</TITLE>\r
+\r
+<META NAME="keywords" CONTENT="org.w3c.www.mux.SampleMuxHandler class">\r
+\r
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">\r
+\r
+<SCRIPT type="text/javascript">\r
+function windowTitle()\r
+{\r
+    parent.document.title="SampleMuxHandler";\r
+}\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+</NOSCRIPT>\r
+\r
+</HEAD>\r
+\r
+<BODY BGCOLOR="white" onload="windowTitle();">\r
+\r
+\r
+<!-- ========= START OF TOP NAVBAR ======= -->\r
+<A NAME="navbar_top"><!-- --></A>\r
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>\r
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
+<TR>\r
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
+<A NAME="navbar_top_firstrow"><!-- --></A>\r
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
+  <TR ALIGN="center" VALIGN="top">\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
+  </TR>\r
+</TABLE>\r
+</TD>\r
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
+</EM>\r
+</TD>\r
+</TR>\r
+\r
+<TR>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+&nbsp;<A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux"><B>PREV CLASS</B></A>&nbsp;\r
+&nbsp;NEXT CLASS</FONT></TD>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+  <A HREF="../../../../index.html?org/w3c/www/mux/SampleMuxHandler.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
+&nbsp;<A HREF="SampleMuxHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
+&nbsp;<SCRIPT type="text/javascript">\r
+  <!--\r
+  if(window==top) {\r
+    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
+  }\r
+  //-->\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
+</NOSCRIPT>\r
+\r
+\r
+</FONT></TD>\r
+</TR>\r
+<TR>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
+</TR>\r
+</TABLE>\r
+<A NAME="skip-navbar_top"></A>\r
+<!-- ========= END OF TOP NAVBAR ========= -->\r
+\r
+<HR>\r
+<!-- ======== START OF CLASS DATA ======== -->\r
+<H2>\r
+<FONT SIZE="-1">\r
+org.w3c.www.mux</FONT>\r
+<BR>\r
+Class SampleMuxHandler</H2>\r
+<PRE>\r
+java.lang.Object\r
+  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.w3c.www.mux.SampleMuxHandler</B>\r
+</PRE>\r
+<DL>\r
+<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux">MuxStreamHandler</A></DD>\r
+</DL>\r
+<HR>\r
+<DL>\r
+<DT><PRE>public class <B>SampleMuxHandler</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux">MuxStreamHandler</A></DL>\r
+</PRE>\r
+\r
+<P>\r
+<HR>\r
+\r
+<P>\r
+<!-- =========== FIELD SUMMARY =========== -->\r
+\r
+<A NAME="field_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Field Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#DISCARD">DISCARD</A></B></CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Well known protocols - The echo protocol identifier.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#ECHO">ECHO</A></B></CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Well known protocols - The echo protocol identifier.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;java.util.Hashtable</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#protocols">protocols</A></B></CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The hashtable of accepted protocols.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected static&nbsp;<A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html" title="class in org.w3c.www.mux">SampleMuxHandler</A></CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#sample">sample</A></B></CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The sigle instance of that class.</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
+\r
+<A NAME="constructor_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Constructor Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#SampleMuxHandler()">SampleMuxHandler</A></B>()</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<!-- ========== METHOD SUMMARY =========== -->\r
+\r
+<A NAME="method_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Method Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;boolean</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#acceptSession(org.w3c.www.mux.MuxStream, int, int)">acceptSession</A></B>(<A HREF="../../../../org/w3c/www/mux/MuxStream.html" title="class in org.w3c.www.mux">MuxStream</A>&nbsp;stream,\r
+              int&nbsp;sessid,\r
+              int&nbsp;protid)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Are we willing to speak the given protocol on the given session.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;<A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux">MuxStreamHandler</A></CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#getStreamHandler()">getStreamHandler</A></B>()</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an instance of that sample mux stream handler.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#log(java.lang.String)">log</A></B>(java.lang.String&nbsp;msg)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log an error.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#notifySession(org.w3c.www.mux.MuxSession)">notifySession</A></B>(<A HREF="../../../../org/w3c/www/mux/MuxSession.html" title="class in org.w3c.www.mux">MuxSession</A>&nbsp;session)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Setup the appropriate protocol handler for that accepted session.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#registerDefaultHandlers()">registerDefaultHandlers</A></B>()</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register default protocol handlers for that stream handler.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#registerHandler(int, org.w3c.www.mux.MuxProtocolHandler)">registerHandler</A></B>(int&nbsp;protid,\r
+                <A HREF="../../../../org/w3c/www/mux/MuxProtocolHandler.html" title="interface in org.w3c.www.mux">MuxProtocolHandler</A>&nbsp;handler)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register an instantiated protocol handler for the given protocol id.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#registerHandler(int, java.lang.String)">registerHandler</A></B>(int&nbsp;protid,\r
+                java.lang.String&nbsp;strhandler)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register a protocol handler for the given protocol identifier.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html#unregisterHandler(int)">unregisterHandler</A></B>(int&nbsp;protid)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unregister any handler for that protocol.</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<P>\r
+\r
+<!-- ============ FIELD DETAIL =========== -->\r
+\r
+<A NAME="field_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Field Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="ECHO"><!-- --></A><H3>\r
+ECHO</H3>\r
+<PRE>\r
+public static final int <B>ECHO</B></PRE>\r
+<DL>\r
+<DD>Well known protocols - The echo protocol identifier.\r
+<P>\r
+<DL>\r
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.w3c.www.mux.SampleMuxHandler.ECHO">Constant Field Values</A></DL>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="DISCARD"><!-- --></A><H3>\r
+DISCARD</H3>\r
+<PRE>\r
+public static final int <B>DISCARD</B></PRE>\r
+<DL>\r
+<DD>Well known protocols - The echo protocol identifier.\r
+<P>\r
+<DL>\r
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.w3c.www.mux.SampleMuxHandler.DISCARD">Constant Field Values</A></DL>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="sample"><!-- --></A><H3>\r
+sample</H3>\r
+<PRE>\r
+protected static <A HREF="../../../../org/w3c/www/mux/SampleMuxHandler.html" title="class in org.w3c.www.mux">SampleMuxHandler</A> <B>sample</B></PRE>\r
+<DL>\r
+<DD>The sigle instance of that class.\r
+<P>\r
+<DL>\r
+</DL>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="protocols"><!-- --></A><H3>\r
+protocols</H3>\r
+<PRE>\r
+protected java.util.Hashtable <B>protocols</B></PRE>\r
+<DL>\r
+<DD>The hashtable of accepted protocols.\r
+<P>\r
+<DL>\r
+</DL>\r
+</DL>\r
+\r
+<!-- ========= CONSTRUCTOR DETAIL ======== -->\r
+\r
+<A NAME="constructor_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Constructor Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="SampleMuxHandler()"><!-- --></A><H3>\r
+SampleMuxHandler</H3>\r
+<PRE>\r
+public <B>SampleMuxHandler</B>()</PRE>\r
+<DL>\r
+</DL>\r
+\r
+<!-- ============ METHOD DETAIL ========== -->\r
+\r
+<A NAME="method_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Method Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="log(java.lang.String)"><!-- --></A><H3>\r
+log</H3>\r
+<PRE>\r
+protected void <B>log</B>(java.lang.String&nbsp;msg)</PRE>\r
+<DL>\r
+<DD>Log an error.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>msg</CODE> - The message to log.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="getStreamHandler()"><!-- --></A><H3>\r
+getStreamHandler</H3>\r
+<PRE>\r
+public static <A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux">MuxStreamHandler</A> <B>getStreamHandler</B>()</PRE>\r
+<DL>\r
+<DD>Get an instance of that sample mux stream handler.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+<DD><DL>\r
+\r
+<DT><B>Returns:</B><DD>A MuxStreamHandler conformant instance.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="acceptSession(org.w3c.www.mux.MuxStream, int, int)"><!-- --></A><H3>\r
+acceptSession</H3>\r
+<PRE>\r
+public boolean <B>acceptSession</B>(<A HREF="../../../../org/w3c/www/mux/MuxStream.html" title="class in org.w3c.www.mux">MuxStream</A>&nbsp;stream,\r
+                             int&nbsp;sessid,\r
+                             int&nbsp;protid)</PRE>\r
+<DL>\r
+<DD>Are we willing to speak the given protocol on the given session.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html#acceptSession(org.w3c.www.mux.MuxStream, int, int)">acceptSession</A></CODE> in interface <CODE><A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux">MuxStreamHandler</A></CODE></DL>\r
+</DD>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>stream</CODE> - The stream that received the new session.<DD><CODE>sessid</CODE> - The proposed session identifier.<DD><CODE>protid</CODE> - The protocol to be spoken on that session.\r
+<DT><B>Returns:</B><DD>A bolean, <strong>true</strong> if the session is accepted,\r
+ <strong>false</strong> otherwise.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="notifySession(org.w3c.www.mux.MuxSession)"><!-- --></A><H3>\r
+notifySession</H3>\r
+<PRE>\r
+public void <B>notifySession</B>(<A HREF="../../../../org/w3c/www/mux/MuxSession.html" title="class in org.w3c.www.mux">MuxSession</A>&nbsp;session)</PRE>\r
+<DL>\r
+<DD>Setup the appropriate protocol handler for that accepted session.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html#notifySession(org.w3c.www.mux.MuxSession)">notifySession</A></CODE> in interface <CODE><A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux">MuxStreamHandler</A></CODE></DL>\r
+</DD>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>session</CODE> - The newly accepted session.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="registerHandler(int, java.lang.String)"><!-- --></A><H3>\r
+registerHandler</H3>\r
+<PRE>\r
+public void <B>registerHandler</B>(int&nbsp;protid,\r
+                            java.lang.String&nbsp;strhandler)</PRE>\r
+<DL>\r
+<DD>Register a protocol handler for the given protocol identifier.\r
+ This method register a class to handle all new connections for the \r
+ given protocol identifier: each new connection will result in a new \r
+ instance of the given class being created (the easy, but slow way).\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>protid</CODE> - The protocol identifier.<DD><CODE>handler</CODE> - The name of the class to instantiate in order\r
+ to get a suitable handler for that protocol.<DT><B>See Also:</B><DD><A HREF="../../../../org/w3c/www/mux/MuxProtocolHandler.html" title="interface in org.w3c.www.mux"><CODE>MuxProtocolHandler</CODE></A></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="registerHandler(int, org.w3c.www.mux.MuxProtocolHandler)"><!-- --></A><H3>\r
+registerHandler</H3>\r
+<PRE>\r
+public void <B>registerHandler</B>(int&nbsp;protid,\r
+                            <A HREF="../../../../org/w3c/www/mux/MuxProtocolHandler.html" title="interface in org.w3c.www.mux">MuxProtocolHandler</A>&nbsp;handler)</PRE>\r
+<DL>\r
+<DD>Register an instantiated protocol handler for the given protocol id.\r
+ This other method of registering protocol handler is faster then\r
+ the previous one: it allows you to spare the instantiation of a protocol\r
+ handler on each new sessions.\r
+ <p>The given handler will be invoked for all new sessions willing to\r
+ speak the advertized protocol.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>protid</CODE> - The protocol identifier.<DD><CODE>handler</CODE> - The instantiated protocol handler.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="unregisterHandler(int)"><!-- --></A><H3>\r
+unregisterHandler</H3>\r
+<PRE>\r
+public void <B>unregisterHandler</B>(int&nbsp;protid)</PRE>\r
+<DL>\r
+<DD>Unregister any handler for that protocol.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>protid</CODE> - The identifier of the protocol to unregister.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="registerDefaultHandlers()"><!-- --></A><H3>\r
+registerDefaultHandlers</H3>\r
+<PRE>\r
+public void <B>registerDefaultHandlers</B>()</PRE>\r
+<DL>\r
+<DD>Register default protocol handlers for that stream handler.\r
+ This is the right method to override in order to either prevent\r
+ well known protocols from being registered, or add new protocol\r
+ handlers.\r
+ <p>Default protocols registered by this class are:\r
+ <dl>\r
+ <dt>echo<dd>The echo protocol.\r
+ <dt>discard<dd>The discard protocol.\r
+ </dt>\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<!-- ========= END OF CLASS DATA ========= -->\r
+<HR>\r
+\r
+\r
+<!-- ======= START OF BOTTOM NAVBAR ====== -->\r
+<A NAME="navbar_bottom"><!-- --></A>\r
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>\r
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
+<TR>\r
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
+<A NAME="navbar_bottom_firstrow"><!-- --></A>\r
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
+  <TR ALIGN="center" VALIGN="top">\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
+  </TR>\r
+</TABLE>\r
+</TD>\r
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
+</EM>\r
+</TD>\r
+</TR>\r
+\r
+<TR>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+&nbsp;<A HREF="../../../../org/w3c/www/mux/MuxStreamHandler.html" title="interface in org.w3c.www.mux"><B>PREV CLASS</B></A>&nbsp;\r
+&nbsp;NEXT CLASS</FONT></TD>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+  <A HREF="../../../../index.html?org/w3c/www/mux/SampleMuxHandler.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
+&nbsp;<A HREF="SampleMuxHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
+&nbsp;<SCRIPT type="text/javascript">\r
+  <!--\r
+  if(window==top) {\r
+    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
+  }\r
+  //-->\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
+</NOSCRIPT>\r
+\r
+\r
+</FONT></TD>\r
+</TR>\r
+<TR>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
+</TR>\r
+</TABLE>\r
+<A NAME="skip-navbar_bottom"></A>\r
+<!-- ======== END OF BOTTOM NAVBAR ======= -->\r
+\r
+<HR>\r
+\r
+</BODY>\r
+</HTML>\r