⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 requestresponsefilter.html

📁 MINA+API 关于MINA的API
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoFilter.html#sessionClosed(org.apache.mina.common.IoFilter.NextFilter, org.apache.mina.common.IoSession)">sessionClosed</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/mina/common/IoFilter.html" title="interface in org.apache.mina.common">IoFilter</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/mina/common/IoFilterAdapter.html#sessionClosed(org.apache.mina.common.IoFilter.NextFilter, org.apache.mina.common.IoSession)">sessionClosed</A></CODE> in class <CODE><A HREF="../../../../../org/apache/mina/common/IoFilterAdapter.html" title="class in org.apache.mina.common">IoFilterAdapter</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="createRequestStore(org.apache.mina.common.IoSession)"><!-- --></A><H3>createRequestStore</H3><PRE>protected <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>&lt;<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>,<A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres">Request</A>&gt; <B>createRequestStore</B>(<A HREF="../../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A>&nbsp;session)</PRE><DL><DD>Returns a <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 stores <code>messageId</code>-<A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres"><CODE>Request</CODE></A> pairs whose <A HREF="../../../../../org/apache/mina/filter/reqres/Response.html" title="class in org.apache.mina.filter.reqres"><CODE>Response</CODE></A>s are not received yet.  Please override this method if you need to use other <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> implementation than the default one (<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util"><CODE>HashMap</CODE></A>).<P><DD><DL></DL></DD></DL><HR><A NAME="createUnrespondedRequestStore(org.apache.mina.common.IoSession)"><!-- --></A><H3>createUnrespondedRequestStore</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres">Request</A>&gt; <B>createUnrespondedRequestStore</B>(<A HREF="../../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A>&nbsp;session)</PRE><DL><DD>Returns a <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><CODE>Set</CODE></A> which stores <A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres"><CODE>Request</CODE></A> whose <A HREF="../../../../../org/apache/mina/filter/reqres/Response.html" title="class in org.apache.mina.filter.reqres"><CODE>Response</CODE></A>s are not received yet. Please override this method if you need to use other <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><CODE>Set</CODE></A> implementation than the default one (<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/LinkedHashSet.html?is-external=true" title="class or interface in java.util"><CODE>LinkedHashSet</CODE></A>).  Please note that the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><CODE>Iterator</CODE></A> of the returned <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><CODE>Set</CODE></A> have to iterate its elements in the insertion order to ensure that <A HREF="../../../../../org/apache/mina/filter/reqres/RequestTimeoutException.html" title="class in org.apache.mina.filter.reqres"><CODE>RequestTimeoutException</CODE></A>s are thrown in the order which <A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres"><CODE>Request</CODE></A>s were written.  If you don't need to guarantee the order of thrown exceptions, any <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><CODE>Set</CODE></A> implementation can be used.<P><DD><DL></DL></DD></DL><HR><A NAME="destroyRequestStore(java.util.Map)"><!-- --></A><H3>destroyRequestStore</H3><PRE>protected void <B>destroyRequestStore</B>(<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>&lt;<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>,<A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres">Request</A>&gt;&nbsp;requestStore)</PRE><DL><DD>Releases any resources related with 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> created by <A HREF="../../../../../org/apache/mina/filter/reqres/RequestResponseFilter.html#createRequestStore(org.apache.mina.common.IoSession)"><CODE>createRequestStore(IoSession)</CODE></A>.  This method is useful if you override <A HREF="../../../../../org/apache/mina/filter/reqres/RequestResponseFilter.html#createRequestStore(org.apache.mina.common.IoSession)"><CODE>createRequestStore(IoSession)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>requestStore</CODE> - what you returned in <A HREF="../../../../../org/apache/mina/filter/reqres/RequestResponseFilter.html#createRequestStore(org.apache.mina.common.IoSession)"><CODE>createRequestStore(IoSession)</CODE></A></DL></DD></DL><HR><A NAME="destroyUnrespondedRequestStore(java.util.Set)"><!-- --></A><H3>destroyUnrespondedRequestStore</H3><PRE>protected void <B>destroyUnrespondedRequestStore</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres">Request</A>&gt;&nbsp;unrespondedRequestStore)</PRE><DL><DD>Releases any resources related with the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><CODE>Set</CODE></A> created by <A HREF="../../../../../org/apache/mina/filter/reqres/RequestResponseFilter.html#createUnrespondedRequestStore(org.apache.mina.common.IoSession)"><CODE>createUnrespondedRequestStore(IoSession)</CODE></A>.  This method is useful if you override <A HREF="../../../../../org/apache/mina/filter/reqres/RequestResponseFilter.html#createUnrespondedRequestStore(org.apache.mina.common.IoSession)"><CODE>createUnrespondedRequestStore(IoSession)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>unrespondedRequestStore</CODE> - what you returned in <A HREF="../../../../../org/apache/mina/filter/reqres/RequestResponseFilter.html#createUnrespondedRequestStore(org.apache.mina.common.IoSession)"><CODE>createUnrespondedRequestStore(IoSession)</CODE></A></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RequestResponseFilter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../org/apache/mina/filter/reqres/Request.html" title="class in org.apache.mina.filter.reqres"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../org/apache/mina/filter/reqres/RequestTimeoutException.html" title="class in org.apache.mina.filter.reqres"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html?org/apache/mina/filter/reqres/RequestResponseFilter.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="RequestResponseFilter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -