📄 protocolcodecsession.html
字号:
IoBuffer in = ...; decoder.decode(session, in, session.getProtocolDecoderOutput()); Object message = session.getProtocolDecoderOutputQueue().poll(); </pre><P><P><DL><DT><B>Version:</B></DT> <DD>$Rev: 607167 $, $Date: 2007-12-27 20:46:03 -0700 (Thu, 27 Dec 2007) $</DD><DT><B>Author:</B></DT> <DD>The Apache MINA Project (dev@mina.apache.org)</DD></DL><HR><P><!-- ======== 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="../../../../../org/apache/mina/filter/codec/ProtocolCodecSession.html#ProtocolCodecSession()">ProtocolCodecSession</A></B>()</CODE><BR> Creates a new instance.</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> <A HREF="../../../../../org/apache/mina/filter/codec/ProtocolDecoderOutput.html" title="interface in org.apache.mina.filter.codec">ProtocolDecoderOutput</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/mina/filter/codec/ProtocolCodecSession.html#getDecoderOutput()">getDecoderOutput</A></B>()</CODE><BR> Returns the <A HREF="../../../../../org/apache/mina/filter/codec/ProtocolEncoderOutput.html" title="interface in org.apache.mina.filter.codec"><CODE>ProtocolEncoderOutput</CODE></A> that buffers messages generated by <A HREF="../../../../../org/apache/mina/filter/codec/ProtocolDecoder.html" title="interface in org.apache.mina.filter.codec"><CODE>ProtocolDecoder</CODE></A>.</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/util/Queue.html?is-external=true" title="class or interface in java.util">Queue</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>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/mina/filter/codec/ProtocolCodecSession.html#getDecoderOutputQueue()">getDecoderOutputQueue</A></B>()</CODE><BR> Returns the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Queue.html?is-external=true" title="class or interface in java.util"><CODE>Queue</CODE></A> of the buffered decoder output.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/apache/mina/filter/codec/ProtocolEncoderOutput.html" title="interface in org.apache.mina.filter.codec">ProtocolEncoderOutput</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/mina/filter/codec/ProtocolCodecSession.html#getEncoderOutput()">getEncoderOutput</A></B>()</CODE><BR> Returns the <A HREF="../../../../../org/apache/mina/filter/codec/ProtocolEncoderOutput.html" title="interface in org.apache.mina.filter.codec"><CODE>ProtocolEncoderOutput</CODE></A> that buffers <A HREF="../../../../../org/apache/mina/common/IoBuffer.html" title="class in org.apache.mina.common"><CODE>IoBuffer</CODE></A>s generated by <A HREF="../../../../../org/apache/mina/filter/codec/ProtocolEncoder.html" title="interface in org.apache.mina.filter.codec"><CODE>ProtocolEncoder</CODE></A>.</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/util/Queue.html?is-external=true" title="class or interface in java.util">Queue</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>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/mina/filter/codec/ProtocolCodecSession.html#getEncoderOutputQueue()">getEncoderOutputQueue</A></B>()</CODE><BR> Returns the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Queue.html?is-external=true" title="class or interface in java.util"><CODE>Queue</CODE></A> of the buffered encoder output.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.mina.common.DummySession"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.mina.common.<A HREF="../../../../../org/apache/mina/common/DummySession.html" title="class in org.apache.mina.common">DummySession</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/mina/common/DummySession.html#getConfig()">getConfig</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#getFilterChain()">getFilterChain</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#getHandler()">getHandler</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#getLocalAddress()">getLocalAddress</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#getProcessor()">getProcessor</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#getRemoteAddress()">getRemoteAddress</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#getService()">getService</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#getTransportMetadata()">getTransportMetadata</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setConfig(org.apache.mina.common.IoSessionConfig)">setConfig</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setHandler(org.apache.mina.common.IoHandler)">setHandler</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setLocalAddress(java.net.SocketAddress)">setLocalAddress</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setRemoteAddress(java.net.SocketAddress)">setRemoteAddress</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setScheduledWriteBytes(long)">setScheduledWriteBytes</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setScheduledWriteMessages(int)">setScheduledWriteMessages</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setService(org.apache.mina.common.IoService)">setService</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#setTransportMetadata(org.apache.mina.common.TransportMetadata)">setTransportMetadata</A>, <A HREF="../../../../../org/apache/mina/common/DummySession.html#updateThroughput(boolean)">updateThroughput</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.mina.common.AbstractIoSession"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.mina.common.<A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html" title="class in org.apache.mina.common">AbstractIoSession</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#close()">close</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#close(boolean)">close</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#closeOnFlush()">closeOnFlush</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#containsAttribute(java.lang.Object)">containsAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#decreaseReadBufferSize()">decreaseReadBufferSize</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#decreaseScheduledBytesAndMessages(org.apache.mina.common.WriteRequest)">decreaseScheduledBytesAndMessages</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getAttachment()">getAttachment</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getAttribute(java.lang.Object)">getAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getAttribute(java.lang.Object, java.lang.Object)">getAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getAttributeKeys()">getAttributeKeys</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getAttributeMap()">getAttributeMap</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getBothIdleCount()">getBothIdleCount</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getCloseFuture()">getCloseFuture</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getCreationTime()">getCreationTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getCurrentWriteRequest()">getCurrentWriteRequest</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getId()">getId</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getIdleCount(org.apache.mina.common.IdleStatus)">getIdleCount</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getLastBothIdleTime()">getLastBothIdleTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getLastIdleTime(org.apache.mina.common.IdleStatus)">getLastIdleTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getLastIoTime()">getLastIoTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getLastReaderIdleTime()">getLastReaderIdleTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getLastReadTime()">getLastReadTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getLastWriterIdleTime()">getLastWriterIdleTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getLastWriteTime()">getLastWriteTime</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getReadBytes()">getReadBytes</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getReadBytesThroughput()">getReadBytesThroughput</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getReaderIdleCount()">getReaderIdleCount</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getReadMessages()">getReadMessages</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getReadMessagesThroughput()">getReadMessagesThroughput</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getScheduledWriteBytes()">getScheduledWriteBytes</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getScheduledWriteMessages()">getScheduledWriteMessages</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getServiceAddress()">getServiceAddress</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getTrafficMask()">getTrafficMask</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getWriteRequestQueue()">getWriteRequestQueue</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getWriterIdleCount()">getWriterIdleCount</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenBytes()">getWrittenBytes</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenBytesThroughput()">getWrittenBytesThroughput</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenMessages()">getWrittenMessages</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenMessagesThroughput()">getWrittenMessagesThroughput</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#hashCode()">hashCode</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#increaseIdleCount(org.apache.mina.common.IdleStatus, long)">increaseIdleCount</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#increaseReadBufferSize()">increaseReadBufferSize</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#increaseReadBytes(long, long)">increaseReadBytes</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#increaseReadMessages(long)">increaseReadMessages</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#increaseScheduledWriteBytes(long)">increaseScheduledWriteBytes</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#increaseScheduledWriteMessages()">increaseScheduledWriteMessages</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#increaseWrittenBytesAndMessages(org.apache.mina.common.WriteRequest, long)">increaseWrittenBytesAndMessages</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#isBothIdle()">isBothIdle</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#isClosing()">isClosing</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#isConnected()">isConnected</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#isIdle(org.apache.mina.common.IdleStatus)">isIdle</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#isReaderIdle()">isReaderIdle</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#isScheduledForFlush()">isScheduledForFlush</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#isWriterIdle()">isWriterIdle</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#offerClosedReadFuture()">offerClosedReadFuture</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#offerFailedReadFuture(java.lang.Throwable)">offerFailedReadFuture</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#offerReadFuture(java.lang.Object)">offerReadFuture</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#read()">read</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#removeAttribute(java.lang.Object)">removeAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#removeAttribute(java.lang.Object, java.lang.Object)">removeAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#replaceAttribute(java.lang.Object, java.lang.Object, java.lang.Object)">replaceAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#resumeRead()">resumeRead</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#resumeWrite()">resumeWrite</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setAttachment(java.lang.Object)">setAttachment</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setAttribute(java.lang.Object)">setAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setAttribute(java.lang.Object, java.lang.Object)">setAttribute</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setAttributeIfAbsent(java.lang.Object)">setAttributeIfAbsent</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setAttributeIfAbsent(java.lang.Object, java.lang.Object)">setAttributeIfAbsent</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setAttributeMap(org.apache.mina.common.IoSessionAttributeMap)">setAttributeMap</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setCurrentWriteRequest(org.apache.mina.common.WriteRequest)">setCurrentWriteRequest</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setScheduledForFlush(boolean)">setScheduledForFlush</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setTrafficMask(org.apache.mina.common.TrafficMask)">setTrafficMask</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setTrafficMaskNow(org.apache.mina.common.TrafficMask)">setTrafficMaskNow</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#setWriteRequestQueue(org.apache.mina.common.WriteRequestQueue)">setWriteRequestQueue</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#suspendRead()">suspendRead</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#suspendWrite()">suspendWrite</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#toString()">toString</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#updateThroughput(long, boolean)">updateThroughput</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#write(java.lang.Object)">write</A>, <A HREF="../../../../../org/apache/mina/common/AbstractIoSession.html#write(java.lang.Object, java.net.SocketAddress)">write</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"><TH ALIGN="left"><B>Methods inherited from class java.lang.<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></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ProtocolCodecSession()"><!-- --></A><H3>ProtocolCodecSession</H3><PRE>public <B>ProtocolCodecSession</B>()</PRE><DL><DD>Creates a new instance.<P></DL><!-- ============ METHOD DETAIL ========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -