📄 demuxingiohandler.html
字号:
<PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>,<A HREF="../../../../../org/apache/mina/handler/demux/MessageHandler.html" title="interface in org.apache.mina.handler.demux">MessageHandler</A><?>> <B>getSentMessageHandlerMap</B>()</PRE><DL><DD>Returns the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><CODE>Map</CODE></A> which contains all messageType-<A HREF="../../../../../org/apache/mina/handler/demux/MessageHandler.html" title="interface in org.apache.mina.handler.demux"><CODE>MessageHandler</CODE></A> pairs registered to this handler for sent messages.<P><DD><DL></DL></DD></DL><HR><A NAME="getExceptionHandlerMap()"><!-- --></A><H3>getExceptionHandlerMap</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>,<A HREF="../../../../../org/apache/mina/handler/demux/ExceptionHandler.html" title="interface in org.apache.mina.handler.demux">ExceptionHandler</A><?>> <B>getExceptionHandlerMap</B>()</PRE><DL><DD>Returns the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><CODE>Map</CODE></A> which contains all messageType-<A HREF="../../../../../org/apache/mina/handler/demux/MessageHandler.html" title="interface in org.apache.mina.handler.demux"><CODE>MessageHandler</CODE></A> pairs registered to this handler.<P><DD><DL></DL></DD></DL><HR><A NAME="messageReceived(org.apache.mina.common.IoSession, java.lang.Object)"><!-- --></A><H3>messageReceived</H3><PRE>public final void <B>messageReceived</B>(<A HREF="../../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A> session, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> message) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Forwards the received events into the appropriate <A HREF="../../../../../org/apache/mina/handler/demux/MessageHandler.html" title="interface in org.apache.mina.handler.demux"><CODE>MessageHandler</CODE></A> which is registered by <A HREF="../../../../../org/apache/mina/handler/demux/DemuxingIoHandler.html#addReceivedMessageHandler(java.lang.Class, org.apache.mina.handler.demux.MessageHandler)"><CODE>addReceivedMessageHandler(Class, MessageHandler)</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html#messageReceived(org.apache.mina.common.IoSession, java.lang.Object)">messageReceived</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common">IoHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoHandlerAdapter.html#messageReceived(org.apache.mina.common.IoSession, java.lang.Object)">messageReceived</A></CODE> in class <CODE><A HREF="../../../../../org/apache/mina/common/IoHandlerAdapter.html" title="class in org.apache.mina.common">IoHandlerAdapter</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="messageSent(org.apache.mina.common.IoSession, java.lang.Object)"><!-- --></A><H3>messageSent</H3><PRE>public final void <B>messageSent</B>(<A HREF="../../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A> session, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> message) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html#messageSent(org.apache.mina.common.IoSession, java.lang.Object)">IoHandler</A></CODE></B></DD><DD>Invoked when a message written by <A HREF="../../../../../org/apache/mina/common/IoSession.html#write(java.lang.Object)"><CODE>IoSession.write(Object)</CODE></A> is sent out.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html#messageSent(org.apache.mina.common.IoSession, java.lang.Object)">messageSent</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common">IoHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoHandlerAdapter.html#messageSent(org.apache.mina.common.IoSession, java.lang.Object)">messageSent</A></CODE> in class <CODE><A HREF="../../../../../org/apache/mina/common/IoHandlerAdapter.html" title="class in org.apache.mina.common">IoHandlerAdapter</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="exceptionCaught(org.apache.mina.common.IoSession, java.lang.Throwable)"><!-- --></A><H3>exceptionCaught</H3><PRE>public final void <B>exceptionCaught</B>(<A HREF="../../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A> session, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> cause) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html#exceptionCaught(org.apache.mina.common.IoSession, java.lang.Throwable)">IoHandler</A></CODE></B></DD><DD>Invoked when any exception is thrown by user <A HREF="../../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common"><CODE>IoHandler</CODE></A> implementation or by MINA. If <code>cause</code> is instanceof <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><CODE>IOException</CODE></A>, MINA will close the connection automatically.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html#exceptionCaught(org.apache.mina.common.IoSession, java.lang.Throwable)">exceptionCaught</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common">IoHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoHandlerAdapter.html#exceptionCaught(org.apache.mina.common.IoSession, java.lang.Throwable)">exceptionCaught</A></CODE> in class <CODE><A HREF="../../../../../org/apache/mina/common/IoHandlerAdapter.html" title="class in org.apache.mina.common">IoHandlerAdapter</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="findReceivedMessageHandler(java.lang.Class)"><!-- --></A><H3>findReceivedMessageHandler</H3><PRE>protected <A HREF="../../../../../org/apache/mina/handler/demux/MessageHandler.html" title="interface in org.apache.mina.handler.demux">MessageHandler</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>> <B>findReceivedMessageHandler</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="findSentMessageHandler(java.lang.Class)"><!-- --></A><H3>findSentMessageHandler</H3><PRE>protected <A HREF="../../../../../org/apache/mina/handler/demux/MessageHandler.html" title="interface in org.apache.mina.handler.demux">MessageHandler</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>> <B>findSentMessageHandler</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="findExceptionHandler(java.lang.Class)"><!-- --></A><H3>findExceptionHandler</H3><PRE>protected <A HREF="../../../../../org/apache/mina/handler/demux/ExceptionHandler.html" title="interface in org.apache.mina.handler.demux">ExceptionHandler</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> <B>findExceptionHandler</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>> type)</PRE><DL><DD><DL></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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DemuxingIoHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../../org/apache/mina/handler/demux/ExceptionHandler.html" title="interface in org.apache.mina.handler.demux"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/mina/handler/demux/DemuxingIoHandler.html" target="_top"><B>FRAMES</B></A> <A HREF="DemuxingIoHandler.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright 漏 2004-2008 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -