Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/IoHandler.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/IoHandler.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/IoHandler.html Mon Jun 11 12:44:51 2018 @@ -31,106 +31,95 @@ <a class="jxr_linenumber" name="L23" href="#L23">23</a> <a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> org.apache.mina.core.session.IdleStatus; <a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.apache.mina.core.session.IoSession; -<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> org.apache.mina.filter.FilterEvent; -<a class="jxr_linenumber" name="L27" href="#L27">27</a> -<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> * Handles all I/O events fired by MINA.</em> -<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="http://mina.apache.org" target="alexandria_uri">http://mina.apache.org</a>">Apache MINA Project</a></em> -<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> * @see IoHandlerAdapter</em> -<a class="jxr_linenumber" name="L34" href="#L34">34</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../org/apache/mina/core/service/IoHandler.html">IoHandler</a> { -<a class="jxr_linenumber" name="L36" href="#L36">36</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L37" href="#L37">37</a> <em class="jxr_javadoccomment"> * Invoked from an I/O processor thread when a new connection has been created.</em> -<a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_javadoccomment"> * Because this method is supposed to be called from the same thread that</em> -<a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> * handles I/O of multiple sessions, please implement this method to perform</em> -<a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> * tasks that consumes minimal amount of time such as socket parameter</em> -<a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> * and user-defined session attribute initialization.</em> -<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> * @param session The session being created</em> -<a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the create event</em> -<a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L46" href="#L46">46</a> <strong class="jxr_keyword">void</strong> sessionCreated(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L47" href="#L47">47</a> -<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em class="jxr_javadoccomment"> * Invoked when a connection has been opened. This method is invoked after</em> -<a class="jxr_linenumber" name="L50" href="#L50">50</a> <em class="jxr_javadoccomment"> * {@link #sessionCreated(IoSession)}. The biggest difference from</em> -<a class="jxr_linenumber" name="L51" href="#L51">51</a> <em class="jxr_javadoccomment"> * {@link #sessionCreated(IoSession)} is that it's invoked from other thread</em> -<a class="jxr_linenumber" name="L52" href="#L52">52</a> <em class="jxr_javadoccomment"> * than an I/O processor thread once thread model is configured properly.</em> -<a class="jxr_linenumber" name="L53" href="#L53">53</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment"> * @param session The session being opened</em> -<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the open event</em> -<a class="jxr_linenumber" name="L56" href="#L56">56</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L57" href="#L57">57</a> <strong class="jxr_keyword">void</strong> sessionOpened(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L58" href="#L58">58</a> -<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L60" href="#L60">60</a> <em class="jxr_javadoccomment"> * Invoked when a connection is closed.</em> -<a class="jxr_linenumber" name="L61" href="#L61">61</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * @param session The session being closed</em> -<a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the close event</em> -<a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">void</strong> sessionClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L66" href="#L66">66</a> -<a class="jxr_linenumber" name="L67" href="#L67">67</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L68" href="#L68">68</a> <em class="jxr_javadoccomment"> * Invoked with the related {@link IdleStatus} when a connection becomes idle.</em> -<a class="jxr_linenumber" name="L69" href="#L69">69</a> <em class="jxr_javadoccomment"> * This method is not invoked if the transport type is UDP; it's a known bug,</em> -<a class="jxr_linenumber" name="L70" href="#L70">70</a> <em class="jxr_javadoccomment"> * and will be fixed in 2.0.</em> -<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L72" href="#L72">72</a> <em class="jxr_javadoccomment"> * @param session The idling session </em> -<a class="jxr_linenumber" name="L73" href="#L73">73</a> <em class="jxr_javadoccomment"> * @param status The session's status</em> -<a class="jxr_linenumber" name="L74" href="#L74">74</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the idle event</em> -<a class="jxr_linenumber" name="L75" href="#L75">75</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L76" href="#L76">76</a> <strong class="jxr_keyword">void</strong> sessionIdle(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/core/session/IdleStatus.html">IdleStatus</a> status) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L77" href="#L77">77</a> -<a class="jxr_linenumber" name="L78" href="#L78">78</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L79" href="#L79">79</a> <em class="jxr_javadoccomment"> * Invoked when any exception is thrown by user {@link IoHandler}</em> -<a class="jxr_linenumber" name="L80" href="#L80">80</a> <em class="jxr_javadoccomment"> * implementation or by MINA. If <code>cause</code> is an instance of</em> -<a class="jxr_linenumber" name="L81" href="#L81">81</a> <em class="jxr_javadoccomment"> * {@link IOException}, MINA will close the connection automatically.</em> -<a class="jxr_linenumber" name="L82" href="#L82">82</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L83" href="#L83">83</a> <em class="jxr_javadoccomment"> * @param session The session for which we have got an exception</em> -<a class="jxr_linenumber" name="L84" href="#L84">84</a> <em class="jxr_javadoccomment"> * @param cause The exception that has been caught</em> -<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the caught exception</em> -<a class="jxr_linenumber" name="L86" href="#L86">86</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L87" href="#L87">87</a> <strong class="jxr_keyword">void</strong> exceptionCaught(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Throwable cause) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L88" href="#L88">88</a> -<a class="jxr_linenumber" name="L89" href="#L89">89</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L90" href="#L90">90</a> <em class="jxr_javadoccomment"> * Invoked when a message is received.</em> -<a class="jxr_linenumber" name="L91" href="#L91">91</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L92" href="#L92">92</a> <em class="jxr_javadoccomment"> * @param session The session that is receiving a message</em> -<a class="jxr_linenumber" name="L93" href="#L93">93</a> <em class="jxr_javadoccomment"> * @param message The received message</em> -<a class="jxr_linenumber" name="L94" href="#L94">94</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the received message</em> -<a class="jxr_linenumber" name="L95" href="#L95">95</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L96" href="#L96">96</a> <strong class="jxr_keyword">void</strong> messageReceived(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L97" href="#L97">97</a> -<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L99" href="#L99">99</a> <em class="jxr_javadoccomment"> * Invoked when a message written by {@link IoSession#write(Object)} is</em> -<a class="jxr_linenumber" name="L100" href="#L100">100</a> <em class="jxr_javadoccomment"> * sent out.</em> -<a class="jxr_linenumber" name="L101" href="#L101">101</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L102" href="#L102">102</a> <em class="jxr_javadoccomment"> * @param session The session that has sent a full message</em> -<a class="jxr_linenumber" name="L103" href="#L103">103</a> <em class="jxr_javadoccomment"> * @param message The sent message</em> -<a class="jxr_linenumber" name="L104" href="#L104">104</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the sent message </em> -<a class="jxr_linenumber" name="L105" href="#L105">105</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L106" href="#L106">106</a> <strong class="jxr_keyword">void</strong> messageSent(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L107" href="#L107">107</a> -<a class="jxr_linenumber" name="L108" href="#L108">108</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L109" href="#L109">109</a> <em class="jxr_javadoccomment"> * Handle the closure of an half-duplex TCP channel</em> -<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L111" href="#L111">111</a> <em class="jxr_javadoccomment"> * @param session The session which input is being closed</em> -<a class="jxr_linenumber" name="L112" href="#L112">112</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while closing the input</em> -<a class="jxr_linenumber" name="L113" href="#L113">113</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L114" href="#L114">114</a> <strong class="jxr_keyword">void</strong> inputClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L115" href="#L115">115</a> -<a class="jxr_linenumber" name="L116" href="#L116">116</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L117" href="#L117">117</a> <em class="jxr_javadoccomment"> * Invoked when a filter event is fired. Each filter might sent a different event,</em> -<a class="jxr_linenumber" name="L118" href="#L118">118</a> <em class="jxr_javadoccomment"> * this is very application specific.</em> -<a class="jxr_linenumber" name="L119" href="#L119">119</a> <em class="jxr_javadoccomment"> * </em> -<a class="jxr_linenumber" name="L120" href="#L120">120</a> <em class="jxr_javadoccomment"> * @param session The session for which we have an event to process</em> -<a class="jxr_linenumber" name="L121" href="#L121">121</a> <em class="jxr_javadoccomment"> * @param event The event to process</em> -<a class="jxr_linenumber" name="L122" href="#L122">122</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the event </em> -<a class="jxr_linenumber" name="L123" href="#L123">123</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L124" href="#L124">124</a> <strong class="jxr_keyword">void</strong> event(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/filter/FilterEvent.html">FilterEvent</a> event) <strong class="jxr_keyword">throws</strong> Exception; -<a class="jxr_linenumber" name="L125" href="#L125">125</a> } +<a class="jxr_linenumber" name="L26" href="#L26">26</a> +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> * Handles all I/O events fired by MINA.</em> +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="http://mina.apache.org" target="alexandria_uri">http://mina.apache.org</a>">Apache MINA Project</a></em> +<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> * @see IoHandlerAdapter</em> +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../org/apache/mina/core/service/IoHandler.html">IoHandler</a> { +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L36" href="#L36">36</a> <em class="jxr_javadoccomment"> * Invoked from an I/O processor thread when a new connection has been created.</em> +<a class="jxr_linenumber" name="L37" href="#L37">37</a> <em class="jxr_javadoccomment"> * Because this method is supposed to be called from the same thread that</em> +<a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_javadoccomment"> * handles I/O of multiple sessions, please implement this method to perform</em> +<a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> * tasks that consumes minimal amount of time such as socket parameter</em> +<a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> * and user-defined session attribute initialization.</em> +<a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> * @param session The session being created</em> +<a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the create event</em> +<a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L45" href="#L45">45</a> <strong class="jxr_keyword">void</strong> sessionCreated(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L46" href="#L46">46</a> +<a class="jxr_linenumber" name="L47" href="#L47">47</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment"> * Invoked when a connection has been opened. This method is invoked after</em> +<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em class="jxr_javadoccomment"> * {@link #sessionCreated(IoSession)}. The biggest difference from</em> +<a class="jxr_linenumber" name="L50" href="#L50">50</a> <em class="jxr_javadoccomment"> * {@link #sessionCreated(IoSession)} is that it's invoked from other thread</em> +<a class="jxr_linenumber" name="L51" href="#L51">51</a> <em class="jxr_javadoccomment"> * than an I/O processor thread once thread model is configured properly.</em> +<a class="jxr_linenumber" name="L52" href="#L52">52</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L53" href="#L53">53</a> <em class="jxr_javadoccomment"> * @param session The session being opened</em> +<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the open event</em> +<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L56" href="#L56">56</a> <strong class="jxr_keyword">void</strong> sessionOpened(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L57" href="#L57">57</a> +<a class="jxr_linenumber" name="L58" href="#L58">58</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_javadoccomment"> * Invoked when a connection is closed.</em> +<a class="jxr_linenumber" name="L60" href="#L60">60</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L61" href="#L61">61</a> <em class="jxr_javadoccomment"> * @param session The session being closed</em> +<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the close event</em> +<a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong class="jxr_keyword">void</strong> sessionClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L65" href="#L65">65</a> +<a class="jxr_linenumber" name="L66" href="#L66">66</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L67" href="#L67">67</a> <em class="jxr_javadoccomment"> * Invoked with the related {@link IdleStatus} when a connection becomes idle.</em> +<a class="jxr_linenumber" name="L68" href="#L68">68</a> <em class="jxr_javadoccomment"> * This method is not invoked if the transport type is UDP; it's a known bug,</em> +<a class="jxr_linenumber" name="L69" href="#L69">69</a> <em class="jxr_javadoccomment"> * and will be fixed in 2.0.</em> +<a class="jxr_linenumber" name="L70" href="#L70">70</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> * @param session The idling session </em> +<a class="jxr_linenumber" name="L72" href="#L72">72</a> <em class="jxr_javadoccomment"> * @param status The session's status</em> +<a class="jxr_linenumber" name="L73" href="#L73">73</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the idle event</em> +<a class="jxr_linenumber" name="L74" href="#L74">74</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L75" href="#L75">75</a> <strong class="jxr_keyword">void</strong> sessionIdle(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/core/session/IdleStatus.html">IdleStatus</a> status) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L76" href="#L76">76</a> +<a class="jxr_linenumber" name="L77" href="#L77">77</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L78" href="#L78">78</a> <em class="jxr_javadoccomment"> * Invoked when any exception is thrown by user {@link IoHandler}</em> +<a class="jxr_linenumber" name="L79" href="#L79">79</a> <em class="jxr_javadoccomment"> * implementation or by MINA. If <code>cause</code> is an instance of</em> +<a class="jxr_linenumber" name="L80" href="#L80">80</a> <em class="jxr_javadoccomment"> * {@link IOException}, MINA will close the connection automatically.</em> +<a class="jxr_linenumber" name="L81" href="#L81">81</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L82" href="#L82">82</a> <em class="jxr_javadoccomment"> * @param session The session for which we have got an exception</em> +<a class="jxr_linenumber" name="L83" href="#L83">83</a> <em class="jxr_javadoccomment"> * @param cause The exception that has been caught</em> +<a class="jxr_linenumber" name="L84" href="#L84">84</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the caught exception</em> +<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L86" href="#L86">86</a> <strong class="jxr_keyword">void</strong> exceptionCaught(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Throwable cause) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L87" href="#L87">87</a> +<a class="jxr_linenumber" name="L88" href="#L88">88</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L89" href="#L89">89</a> <em class="jxr_javadoccomment"> * Invoked when a message is received.</em> +<a class="jxr_linenumber" name="L90" href="#L90">90</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L91" href="#L91">91</a> <em class="jxr_javadoccomment"> * @param session The session that is receiving a message</em> +<a class="jxr_linenumber" name="L92" href="#L92">92</a> <em class="jxr_javadoccomment"> * @param message The received message</em> +<a class="jxr_linenumber" name="L93" href="#L93">93</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the received message</em> +<a class="jxr_linenumber" name="L94" href="#L94">94</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L95" href="#L95">95</a> <strong class="jxr_keyword">void</strong> messageReceived(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L96" href="#L96">96</a> +<a class="jxr_linenumber" name="L97" href="#L97">97</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em class="jxr_javadoccomment"> * Invoked when a message written by {@link IoSession#write(Object)} is</em> +<a class="jxr_linenumber" name="L99" href="#L99">99</a> <em class="jxr_javadoccomment"> * sent out.</em> +<a class="jxr_linenumber" name="L100" href="#L100">100</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L101" href="#L101">101</a> <em class="jxr_javadoccomment"> * @param session The session that has sent a full message</em> +<a class="jxr_linenumber" name="L102" href="#L102">102</a> <em class="jxr_javadoccomment"> * @param message The sent message</em> +<a class="jxr_linenumber" name="L103" href="#L103">103</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while processing the sent message </em> +<a class="jxr_linenumber" name="L104" href="#L104">104</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L105" href="#L105">105</a> <strong class="jxr_keyword">void</strong> messageSent(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L106" href="#L106">106</a> +<a class="jxr_linenumber" name="L107" href="#L107">107</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L108" href="#L108">108</a> <em class="jxr_javadoccomment"> * Handle the closure of an half-duplex TCP channel</em> +<a class="jxr_linenumber" name="L109" href="#L109">109</a> <em class="jxr_javadoccomment"> * </em> +<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment"> * @param session The session which input is being closed</em> +<a class="jxr_linenumber" name="L111" href="#L111">111</a> <em class="jxr_javadoccomment"> * @throws Exception If we get an exception while closing the input</em> +<a class="jxr_linenumber" name="L112" href="#L112">112</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L113" href="#L113">113</a> <strong class="jxr_keyword">void</strong> inputClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception; +<a class="jxr_linenumber" name="L114" href="#L114">114</a> } </pre> <hr/> <div id="footer">Copyright © 2004–2018 <a href="http://mina.apache.org/">Apache MINA Project</a>. All rights reserved.</div>
Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/IoHandlerAdapter.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/IoHandlerAdapter.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/IoHandlerAdapter.html Mon Jun 11 12:44:51 2018 @@ -29,95 +29,86 @@ <a class="jxr_linenumber" name="L21" href="#L21">21</a> <a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> org.apache.mina.core.session.IdleStatus; <a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong class="jxr_keyword">import</strong> org.apache.mina.core.session.IoSession; -<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> org.apache.mina.filter.FilterEvent; -<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.slf4j.Logger; -<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> org.slf4j.LoggerFactory; -<a class="jxr_linenumber" name="L27" href="#L27">27</a> -<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> * An adapter class for {@link IoHandler}. You can extend this</em> -<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * class and selectively override required event handler methods only. All</em> -<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> * methods do nothing by default.</em> -<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="http://mina.apache.org" target="alexandria_uri">http://mina.apache.org</a>">Apache MINA Project</a></em> -<a class="jxr_linenumber" name="L34" href="#L34">34</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/mina/core/service/IoHandlerAdapter.html">IoHandlerAdapter</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/mina/core/service/IoHandler.html">IoHandler</a> { -<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Logger LOGGER = LoggerFactory.getLogger(IoHandlerAdapter.<strong class="jxr_keyword">class</strong>); -<a class="jxr_linenumber" name="L37" href="#L37">37</a> -<a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L41" href="#L41">41</a> @Override -<a class="jxr_linenumber" name="L42" href="#L42">42</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionCreated(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_comment">// Empty handler</em> -<a class="jxr_linenumber" name="L44" href="#L44">44</a> } -<a class="jxr_linenumber" name="L45" href="#L45">45</a> -<a class="jxr_linenumber" name="L46" href="#L46">46</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L47" href="#L47">47</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L49" href="#L49">49</a> @Override -<a class="jxr_linenumber" name="L50" href="#L50">50</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionOpened(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L51" href="#L51">51</a> <em class="jxr_comment">// Empty handler</em> -<a class="jxr_linenumber" name="L52" href="#L52">52</a> } -<a class="jxr_linenumber" name="L53" href="#L53">53</a> -<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L56" href="#L56">56</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L57" href="#L57">57</a> @Override -<a class="jxr_linenumber" name="L58" href="#L58">58</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_comment">// Empty handler</em> -<a class="jxr_linenumber" name="L60" href="#L60">60</a> } -<a class="jxr_linenumber" name="L61" href="#L61">61</a> -<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L65" href="#L65">65</a> @Override -<a class="jxr_linenumber" name="L66" href="#L66">66</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionIdle(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/core/session/IdleStatus.html">IdleStatus</a> status) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L67" href="#L67">67</a> <em class="jxr_comment">// Empty handler</em> -<a class="jxr_linenumber" name="L68" href="#L68">68</a> } -<a class="jxr_linenumber" name="L69" href="#L69">69</a> -<a class="jxr_linenumber" name="L70" href="#L70">70</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L72" href="#L72">72</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L73" href="#L73">73</a> @Override -<a class="jxr_linenumber" name="L74" href="#L74">74</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> exceptionCaught(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Throwable cause) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L75" href="#L75">75</a> <strong class="jxr_keyword">if</strong> (LOGGER.isWarnEnabled()) { -<a class="jxr_linenumber" name="L76" href="#L76">76</a> LOGGER.warn(<span class="jxr_string">"EXCEPTION, please implement "</span> + getClass().getName() -<a class="jxr_linenumber" name="L77" href="#L77">77</a> + <span class="jxr_string">".exceptionCaught() for proper handling:"</span>, cause); -<a class="jxr_linenumber" name="L78" href="#L78">78</a> } -<a class="jxr_linenumber" name="L79" href="#L79">79</a> } -<a class="jxr_linenumber" name="L80" href="#L80">80</a> -<a class="jxr_linenumber" name="L81" href="#L81">81</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L82" href="#L82">82</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L83" href="#L83">83</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L84" href="#L84">84</a> @Override -<a class="jxr_linenumber" name="L85" href="#L85">85</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> messageReceived(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L86" href="#L86">86</a> <em class="jxr_comment">// Empty handler</em> -<a class="jxr_linenumber" name="L87" href="#L87">87</a> } -<a class="jxr_linenumber" name="L88" href="#L88">88</a> -<a class="jxr_linenumber" name="L89" href="#L89">89</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L90" href="#L90">90</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L91" href="#L91">91</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L92" href="#L92">92</a> @Override -<a class="jxr_linenumber" name="L93" href="#L93">93</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> messageSent(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L94" href="#L94">94</a> <em class="jxr_comment">// Empty handler</em> -<a class="jxr_linenumber" name="L95" href="#L95">95</a> } -<a class="jxr_linenumber" name="L96" href="#L96">96</a> -<a class="jxr_linenumber" name="L97" href="#L97">97</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L99" href="#L99">99</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L100" href="#L100">100</a> @Override -<a class="jxr_linenumber" name="L101" href="#L101">101</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> inputClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L102" href="#L102">102</a> session.closeNow(); -<a class="jxr_linenumber" name="L103" href="#L103">103</a> } -<a class="jxr_linenumber" name="L104" href="#L104">104</a> -<a class="jxr_linenumber" name="L105" href="#L105">105</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L106" href="#L106">106</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> -<a class="jxr_linenumber" name="L107" href="#L107">107</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L108" href="#L108">108</a> @Override -<a class="jxr_linenumber" name="L109" href="#L109">109</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> event(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/filter/FilterEvent.html">FilterEvent</a> event) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_comment">// Empty handler</em> -<a class="jxr_linenumber" name="L111" href="#L111">111</a> } -<a class="jxr_linenumber" name="L112" href="#L112">112</a> } +<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> org.slf4j.Logger; +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.slf4j.LoggerFactory; +<a class="jxr_linenumber" name="L26" href="#L26">26</a> +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> * An adapter class for {@link IoHandler}. You can extend this</em> +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> * class and selectively override required event handler methods only. All</em> +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * methods do nothing by default.</em> +<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="http://mina.apache.org" target="alexandria_uri">http://mina.apache.org</a>">Apache MINA Project</a></em> +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/mina/core/service/IoHandlerAdapter.html">IoHandlerAdapter</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/mina/core/service/IoHandler.html">IoHandler</a> { +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Logger LOGGER = LoggerFactory.getLogger(IoHandlerAdapter.<strong class="jxr_keyword">class</strong>); +<a class="jxr_linenumber" name="L36" href="#L36">36</a> +<a class="jxr_linenumber" name="L37" href="#L37">37</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L40" href="#L40">40</a> @Override +<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionCreated(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_comment">// Empty handler</em> +<a class="jxr_linenumber" name="L43" href="#L43">43</a> } +<a class="jxr_linenumber" name="L44" href="#L44">44</a> +<a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L46" href="#L46">46</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L47" href="#L47">47</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L48" href="#L48">48</a> @Override +<a class="jxr_linenumber" name="L49" href="#L49">49</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionOpened(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L50" href="#L50">50</a> <em class="jxr_comment">// Empty handler</em> +<a class="jxr_linenumber" name="L51" href="#L51">51</a> } +<a class="jxr_linenumber" name="L52" href="#L52">52</a> +<a class="jxr_linenumber" name="L53" href="#L53">53</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L56" href="#L56">56</a> @Override +<a class="jxr_linenumber" name="L57" href="#L57">57</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L58" href="#L58">58</a> <em class="jxr_comment">// Empty handler</em> +<a class="jxr_linenumber" name="L59" href="#L59">59</a> } +<a class="jxr_linenumber" name="L60" href="#L60">60</a> +<a class="jxr_linenumber" name="L61" href="#L61">61</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L64" href="#L64">64</a> @Override +<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionIdle(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/core/session/IdleStatus.html">IdleStatus</a> status) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L66" href="#L66">66</a> <em class="jxr_comment">// Empty handler</em> +<a class="jxr_linenumber" name="L67" href="#L67">67</a> } +<a class="jxr_linenumber" name="L68" href="#L68">68</a> +<a class="jxr_linenumber" name="L69" href="#L69">69</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L70" href="#L70">70</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L72" href="#L72">72</a> @Override +<a class="jxr_linenumber" name="L73" href="#L73">73</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> exceptionCaught(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Throwable cause) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L74" href="#L74">74</a> <strong class="jxr_keyword">if</strong> (LOGGER.isWarnEnabled()) { +<a class="jxr_linenumber" name="L75" href="#L75">75</a> LOGGER.warn(<span class="jxr_string">"EXCEPTION, please implement "</span> + getClass().getName() +<a class="jxr_linenumber" name="L76" href="#L76">76</a> + <span class="jxr_string">".exceptionCaught() for proper handling:"</span>, cause); +<a class="jxr_linenumber" name="L77" href="#L77">77</a> } +<a class="jxr_linenumber" name="L78" href="#L78">78</a> } +<a class="jxr_linenumber" name="L79" href="#L79">79</a> +<a class="jxr_linenumber" name="L80" href="#L80">80</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L81" href="#L81">81</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L82" href="#L82">82</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L83" href="#L83">83</a> @Override +<a class="jxr_linenumber" name="L84" href="#L84">84</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> messageReceived(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em class="jxr_comment">// Empty handler</em> +<a class="jxr_linenumber" name="L86" href="#L86">86</a> } +<a class="jxr_linenumber" name="L87" href="#L87">87</a> +<a class="jxr_linenumber" name="L88" href="#L88">88</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L89" href="#L89">89</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L90" href="#L90">90</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L91" href="#L91">91</a> @Override +<a class="jxr_linenumber" name="L92" href="#L92">92</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> messageSent(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L93" href="#L93">93</a> <em class="jxr_comment">// Empty handler</em> +<a class="jxr_linenumber" name="L94" href="#L94">94</a> } +<a class="jxr_linenumber" name="L95" href="#L95">95</a> +<a class="jxr_linenumber" name="L96" href="#L96">96</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L97" href="#L97">97</a> <em class="jxr_javadoccomment"> * {@inheritDoc}</em> +<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L99" href="#L99">99</a> @Override +<a class="jxr_linenumber" name="L100" href="#L100">100</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> inputClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L101" href="#L101">101</a> session.closeNow(); +<a class="jxr_linenumber" name="L102" href="#L102">102</a> } +<a class="jxr_linenumber" name="L103" href="#L103">103</a> } </pre> <hr/> <div id="footer">Copyright © 2004–2018 <a href="http://mina.apache.org/">Apache MINA Project</a>. All rights reserved.</div> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.core.service</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.core.service</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/service/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.core.service</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.core.service</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/IoSession.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/IoSession.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/IoSession.html Mon Jun 11 12:44:51 2018 @@ -186,7 +186,7 @@ <a class="jxr_linenumber" name="L178" href="#L178">178</a> <em class="jxr_javadoccomment"> * {@code false} to close this session after all queued</em> <a class="jxr_linenumber" name="L179" href="#L179">179</a> <em class="jxr_javadoccomment"> * write requests are flushed.</em> <a class="jxr_linenumber" name="L180" href="#L180">180</a> <em class="jxr_javadoccomment"> * @return The associated CloseFuture</em> -<a class="jxr_linenumber" name="L181" href="#L181">181</a> <em class="jxr_javadoccomment"> * @deprecated Use either the closeNow() or the flushAndClose() methods</em> +<a class="jxr_linenumber" name="L181" href="#L181">181</a> <em class="jxr_javadoccomment"> * @deprecated Use either the {@link #closeNow()} or the {@link #closeOnFlush()} methods</em> <a class="jxr_linenumber" name="L182" href="#L182">182</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L183" href="#L183">183</a> @Deprecated <a class="jxr_linenumber" name="L184" href="#L184">184</a> <a href="../../../../../org/apache/mina/core/future/CloseFuture.html">CloseFuture</a> close(<strong class="jxr_keyword">boolean</strong> immediately); @@ -212,7 +212,7 @@ <a class="jxr_linenumber" name="L204" href="#L204">204</a> <em class="jxr_javadoccomment"> * Closes this session after all queued write requests</em> <a class="jxr_linenumber" name="L205" href="#L205">205</a> <em class="jxr_javadoccomment"> * are flushed. This operation is asynchronous. Wait for the returned</em> <a class="jxr_linenumber" name="L206" href="#L206">206</a> <em class="jxr_javadoccomment"> * {@link CloseFuture} if you want to wait for the session actually closed.</em> -<a class="jxr_linenumber" name="L207" href="#L207">207</a> <em class="jxr_javadoccomment"> * @deprecated use {@link #close(boolean)}</em> +<a class="jxr_linenumber" name="L207" href="#L207">207</a> <em class="jxr_javadoccomment"> * @deprecated use {@link #closeNow()}</em> <a class="jxr_linenumber" name="L208" href="#L208">208</a> <em class="jxr_javadoccomment"> * </em> <a class="jxr_linenumber" name="L209" href="#L209">209</a> <em class="jxr_javadoccomment"> * @return The associated CloseFuture</em> <a class="jxr_linenumber" name="L210" href="#L210">210</a> <em class="jxr_javadoccomment"> */</em> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.core.session</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.core.session</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/session/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.core.session</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.core.session</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/write/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/write/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/write/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.core.write</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.core.write</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/core/write/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/core/write/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/core/write/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.core.write</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.core.write</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/client/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/client/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/client/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.chat.client</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.chat.client</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/client/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/client/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/client/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.chat.client</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.chat.client</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.chat</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.chat</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/chat/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.chat</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.chat</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/EchoProtocolHandler.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/EchoProtocolHandler.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/EchoProtocolHandler.html Mon Jun 11 12:44:51 2018 @@ -32,50 +32,54 @@ <a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> org.apache.mina.core.service.IoHandlerAdapter; <a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.apache.mina.core.session.IdleStatus; <a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> org.apache.mina.core.session.IoSession; -<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> org.slf4j.Logger; -<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> org.slf4j.LoggerFactory; -<a class="jxr_linenumber" name="L29" href="#L29">29</a> -<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> * {@link IoHandler} implementation for echo server.</em> -<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="http://mina.apache.org" target="alexandria_uri">http://mina.apache.org</a>">Apache MINA Project</a></em> -<a class="jxr_linenumber" name="L34" href="#L34">34</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/mina/example/echoserver/EchoProtocolHandler.html">EchoProtocolHandler</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/mina/core/service/IoHandlerAdapter.html">IoHandlerAdapter</a> { -<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">static</strong> Logger LOGGER = LoggerFactory.getLogger(EchoProtocolHandler.<strong class="jxr_keyword">class</strong>); -<a class="jxr_linenumber" name="L37" href="#L37">37</a> -<a class="jxr_linenumber" name="L38" href="#L38">38</a> @Override -<a class="jxr_linenumber" name="L39" href="#L39">39</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionCreated(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) { -<a class="jxr_linenumber" name="L40" href="#L40">40</a> session.getConfig().setIdleTime(IdleStatus.BOTH_IDLE, 10); -<a class="jxr_linenumber" name="L41" href="#L41">41</a> } +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> org.apache.mina.filter.ssl.SslFilter; +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> org.slf4j.Logger; +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">import</strong> org.slf4j.LoggerFactory; +<a class="jxr_linenumber" name="L30" href="#L30">30</a> +<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> * {@link IoHandler} implementation for echo server.</em> +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L34" href="#L34">34</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="http://mina.apache.org" target="alexandria_uri">http://mina.apache.org</a>">Apache MINA Project</a></em> +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/mina/example/echoserver/EchoProtocolHandler.html">EchoProtocolHandler</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/mina/core/service/IoHandlerAdapter.html">IoHandlerAdapter</a> { +<a class="jxr_linenumber" name="L37" href="#L37">37</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">static</strong> Logger LOGGER = LoggerFactory.getLogger(EchoProtocolHandler.<strong class="jxr_keyword">class</strong>); +<a class="jxr_linenumber" name="L38" href="#L38">38</a> +<a class="jxr_linenumber" name="L39" href="#L39">39</a> @Override +<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionCreated(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) { +<a class="jxr_linenumber" name="L41" href="#L41">41</a> session.getConfig().setIdleTime(IdleStatus.BOTH_IDLE, 10); <a class="jxr_linenumber" name="L42" href="#L42">42</a> -<a class="jxr_linenumber" name="L43" href="#L43">43</a> @Override -<a class="jxr_linenumber" name="L44" href="#L44">44</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L45" href="#L45">45</a> LOGGER.info(<span class="jxr_string">"CLOSED"</span>); -<a class="jxr_linenumber" name="L46" href="#L46">46</a> } -<a class="jxr_linenumber" name="L47" href="#L47">47</a> -<a class="jxr_linenumber" name="L48" href="#L48">48</a> @Override -<a class="jxr_linenumber" name="L49" href="#L49">49</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionOpened(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L50" href="#L50">50</a> LOGGER.info(<span class="jxr_string">"OPENED"</span>); -<a class="jxr_linenumber" name="L51" href="#L51">51</a> } -<a class="jxr_linenumber" name="L52" href="#L52">52</a> -<a class="jxr_linenumber" name="L53" href="#L53">53</a> @Override -<a class="jxr_linenumber" name="L54" href="#L54">54</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionIdle(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/core/session/IdleStatus.html">IdleStatus</a> status) { -<a class="jxr_linenumber" name="L55" href="#L55">55</a> LOGGER.info(<span class="jxr_string">"*** IDLE #"</span> + session.getIdleCount(IdleStatus.BOTH_IDLE) + <span class="jxr_string">" ***"</span>); -<a class="jxr_linenumber" name="L56" href="#L56">56</a> } -<a class="jxr_linenumber" name="L57" href="#L57">57</a> -<a class="jxr_linenumber" name="L58" href="#L58">58</a> @Override -<a class="jxr_linenumber" name="L59" href="#L59">59</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> exceptionCaught(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Throwable cause) { -<a class="jxr_linenumber" name="L60" href="#L60">60</a> session.closeNow(); -<a class="jxr_linenumber" name="L61" href="#L61">61</a> } -<a class="jxr_linenumber" name="L62" href="#L62">62</a> -<a class="jxr_linenumber" name="L63" href="#L63">63</a> @Override -<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> messageReceived(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) -<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">throws</strong> Exception { -<a class="jxr_linenumber" name="L66" href="#L66">66</a> LOGGER.info( <span class="jxr_string">"Received : "</span> + message ); -<a class="jxr_linenumber" name="L67" href="#L67">67</a> <em class="jxr_comment">// Write the received data back to remote peer</em> -<a class="jxr_linenumber" name="L68" href="#L68">68</a> session.write(((IoBuffer) message).duplicate()); -<a class="jxr_linenumber" name="L69" href="#L69">69</a> } -<a class="jxr_linenumber" name="L70" href="#L70">70</a> } +<a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_comment">// We're going to use SSL negotiation notification.</em> +<a class="jxr_linenumber" name="L44" href="#L44">44</a> session.setAttribute(SslFilter.USE_NOTIFICATION); +<a class="jxr_linenumber" name="L45" href="#L45">45</a> } +<a class="jxr_linenumber" name="L46" href="#L46">46</a> +<a class="jxr_linenumber" name="L47" href="#L47">47</a> @Override +<a class="jxr_linenumber" name="L48" href="#L48">48</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionClosed(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L49" href="#L49">49</a> LOGGER.info(<span class="jxr_string">"CLOSED"</span>); +<a class="jxr_linenumber" name="L50" href="#L50">50</a> } +<a class="jxr_linenumber" name="L51" href="#L51">51</a> +<a class="jxr_linenumber" name="L52" href="#L52">52</a> @Override +<a class="jxr_linenumber" name="L53" href="#L53">53</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionOpened(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L54" href="#L54">54</a> LOGGER.info(<span class="jxr_string">"OPENED"</span>); +<a class="jxr_linenumber" name="L55" href="#L55">55</a> } +<a class="jxr_linenumber" name="L56" href="#L56">56</a> +<a class="jxr_linenumber" name="L57" href="#L57">57</a> @Override +<a class="jxr_linenumber" name="L58" href="#L58">58</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> sessionIdle(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, <a href="../../../../../org/apache/mina/core/session/IdleStatus.html">IdleStatus</a> status) { +<a class="jxr_linenumber" name="L59" href="#L59">59</a> LOGGER.info(<span class="jxr_string">"*** IDLE #"</span> + session.getIdleCount(IdleStatus.BOTH_IDLE) + <span class="jxr_string">" ***"</span>); +<a class="jxr_linenumber" name="L60" href="#L60">60</a> } +<a class="jxr_linenumber" name="L61" href="#L61">61</a> +<a class="jxr_linenumber" name="L62" href="#L62">62</a> @Override +<a class="jxr_linenumber" name="L63" href="#L63">63</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> exceptionCaught(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Throwable cause) { +<a class="jxr_linenumber" name="L64" href="#L64">64</a> session.closeNow(); +<a class="jxr_linenumber" name="L65" href="#L65">65</a> } +<a class="jxr_linenumber" name="L66" href="#L66">66</a> +<a class="jxr_linenumber" name="L67" href="#L67">67</a> @Override +<a class="jxr_linenumber" name="L68" href="#L68">68</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> messageReceived(<a href="../../../../../org/apache/mina/core/session/IoSession.html">IoSession</a> session, Object message) +<a class="jxr_linenumber" name="L69" href="#L69">69</a> <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L70" href="#L70">70</a> LOGGER.info( <span class="jxr_string">"Received : "</span> + message ); +<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_comment">// Write the received data back to remote peer</em> +<a class="jxr_linenumber" name="L72" href="#L72">72</a> session.write(((IoBuffer) message).duplicate()); +<a class="jxr_linenumber" name="L73" href="#L73">73</a> } +<a class="jxr_linenumber" name="L74" href="#L74">74</a> } </pre> <hr/> <div id="footer">Copyright © 2004–2018 <a href="http://mina.apache.org/">Apache MINA Project</a>. All rights reserved.</div> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.echoserver</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.echoserver</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.echoserver</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.echoserver</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/ssl/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/ssl/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/ssl/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.echoserver.ssl</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.echoserver.ssl</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/ssl/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/ssl/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/echoserver/ssl/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.echoserver.ssl</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.echoserver.ssl</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/gettingstarted/timeserver/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/gettingstarted/timeserver/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/gettingstarted/timeserver/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.gettingstarted.timeserver</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.gettingstarted.timeserver</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/gettingstarted/timeserver/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/gettingstarted/timeserver/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/gettingstarted/timeserver/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.gettingstarted.timeserver</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.gettingstarted.timeserver</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/haiku/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/haiku/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/haiku/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.haiku</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.haiku</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/haiku/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/haiku/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/haiku/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.haiku</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.haiku</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/client/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/client/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/client/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1.client</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1.client</title> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/client/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/client/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/client/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1.client</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1.client</title> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/codec/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/codec/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/codec/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1.codec</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1.codec</title> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/codec/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/codec/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/codec/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1.codec</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1.codec</title> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1</title> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/server/package-frame.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/server/package-frame.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/server/package-frame.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1.server</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1.server</title> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/server/package-summary.html ============================================================================== --- websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/server/package-summary.html (original) +++ websites/production/mina/content/mina-project/xref/org/apache/mina/example/imagine/step1/server/package-summary.html Mon Jun 11 12:44:51 2018 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Apache MINA 2.0.18 Cross Reference Package org.apache.mina.example.imagine.step1.server</title> + <title>Apache MINA 2.0.19 Cross Reference Package org.apache.mina.example.imagine.step1.server</title> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" /> </head> <body>