1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.eclipse.jetty.spdy;
21
22 import java.io.IOException;
23
24 import org.eclipse.jetty.io.AbstractConnection;
25 import org.eclipse.jetty.io.AsyncEndPoint;
26 import org.eclipse.jetty.io.Connection;
27 import org.eclipse.jetty.io.nio.AsyncConnection;
28
29 public class EmptyAsyncConnection extends AbstractConnection implements AsyncConnection
30 {
31 public EmptyAsyncConnection(AsyncEndPoint endPoint)
32 {
33 super(endPoint);
34 }
35
36 public Connection handle() throws IOException
37 {
38 return this;
39 }
40
41 @Override
42 public AsyncEndPoint getEndPoint()
43 {
44 return (AsyncEndPoint)super.getEndPoint();
45 }
46
47 @Override
48 public boolean isIdle()
49 {
50 return false;
51 }
52
53 @Override
54 public boolean isSuspended()
55 {
56 return false;
57 }
58
59 @Override
60 public void onClose()
61 {
62 }
63
64 @Override
65 public void onInputShutdown() throws IOException
66 {
67 }
68 }