ActiveIO - 1.0

Clover coverage report - ActiveIO - 1.0 Coverage timestamp: Fri Apr 22 2005 14:27:22 PDT FRAMES NO FRAMES |
file stats: | LOC: | 97 |  | Methods: | 10
| NCLOC: | 38 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
FilterSynchChannelServer.java | 0% | 0% | 0% | 0% |

1 |  |
     /**
2 |  |
      *
3 |  |
      * Copyright 2004 Hiram Chirino
4 |  |
      *
5 |  |
      *  Licensed under the Apache License, Version 2.0 (the "License");
6 |  |
      *  you may not use this file except in compliance with the License.
7 |  |
      *  You may obtain a copy of the License at
8 |  |
      *
9 |  |
      *     http://www.apache.org/licenses/LICENSE-2.0
10 |  |
      *
11 |  |
      *  Unless required by applicable law or agreed to in writing, software
12 |  |
      *  distributed under the License is distributed on an "AS IS" BASIS,
13 |  |
      *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 |  |
      *  See the License for the specific language governing permissions and
15 |  |
      *  limitations under the License.
16 |  |
      */
17 |  |
     package org.activeio;
18 |  |
19 |  |
     import java.io.IOException;
20 |  |
     import java.net.URI;
21 |  |
22 |  |
23 |  |
     /**
24 |  |
      * A SynchChannelFilter can be used as a filter another {@see org.activeio.SynchChannel}
25 |  |
      * Most {@see org.activeio.SynchChannel} that are not directly accessing the network will
26 |  |
      * extends the SynchChannelFilter since they act as a filter between the client and the network.
27 |  |
      *
28 |  |
      * @version $Revision$
29 |  |
      */
30 |  |
     public class FilterSynchChannelServer implements SynchChannelServer {
31 |  |
32 |  |
         private final SynchChannelServer next;
33 |  |
34 | 0 |
         public FilterSynchChannelServer(SynchChannelServer next) {
35 | 0 |
             this.next = next;
36 |  |
         }
37 |  |
38 |  |
         /**
39 |  |
          * @see org.activeio.Disposable#dispose()
40 |  |
          */
41 | 0 |
         public void dispose() {
42 | 0 |
             next.dispose();
43 |  |
         }
44 |  |
45 |  |
         /**
46 |  |
          * @see org.activeio.Service#start()
47 |  |
          */
48 | 0 |
         public void start() throws IOException {
49 | 0 |
             next.start();
50 |  |
         }
51 |  |
52 |  |
         /**
53 |  |
          * @see org.activeio.Service#stop(long)
54 |  |
          */
55 | 0 |
         public void stop(long timeout) throws IOException {
56 | 0 |
             next.stop(timeout);
57 |  |
         }
58 |  |
59 |  |
         /**
60 |  |
          * @return Returns the next.
61 |  |
          */
62 | 0 |
         public SynchChannelServer getNext() {
63 | 0 |
             return next;
64 |  |
         }
65 |  |
66 |  |
         /**
67 |  |
          * @see org.activeio.SynchChannelServer#accept(long)
68 |  |
          */
69 | 0 |
         public Channel accept(long timeout) throws IOException {
70 | 0 |
             return next.accept(timeout);
71 |  |
         }
72 |  |
73 |  |
         /**
74 |  |
          * @see org.activeio.ChannelServer#getBindURI()
75 |  |
          */
76 | 0 |
         public URI getBindURI() {
77 | 0 |
             return next.getBindURI();
78 |  |
         }
79 |  |
80 |  |
         /**
81 |  |
          * @see org.activeio.ChannelServer#getConnectURI()
82 |  |
          */
83 | 0 |
         public URI getConnectURI() {
84 | 0 |
             return next.getConnectURI();
85 |  |
         }
86 |  |
87 | 0 |
         public Object narrow(Class target) {
88 | 0 |
             if( target.isAssignableFrom(getClass()) ) {
89 | 0 |
                 return this;
90 |  |
             }
91 | 0 |
             return next.narrow(target);
92 |  |
         }
93 |  |
94 | 0 |
         public String toString() {
95 | 0 |
             return next.toString();
96 |  |
         }
97 |  |
     }