Lines Matching refs:HttpConnection

39 import sun.net.httpserver.HttpConnection.State;
56 private Set<HttpConnection> idleConnections;
57 private Set<HttpConnection> allConnections;
62 private Set<HttpConnection> reqConnections;
63 private Set<HttpConnection> rspConnections;
107 idleConnections = Collections.synchronizedSet (new HashSet<HttpConnection>());
108 allConnections = Collections.synchronizedSet (new HashSet<HttpConnection>());
109 reqConnections = Collections.synchronizedSet (new HashSet<HttpConnection>());
110 rspConnections = Collections.synchronizedSet (new HashSet<HttpConnection>());
198 for (HttpConnection c : allConnections) {
276 HttpConnection c = t.getConnection();
310 final LinkedList<HttpConnection> connsToRegister =
311 new LinkedList<HttpConnection>();
313 void reRegister (HttpConnection c) {
333 ListIterator<HttpConnection> li =
335 for (HttpConnection c : connsToRegister) {
378 HttpConnection c = new HttpConnection ();
389 HttpConnection conn = (HttpConnection)key.attachment();
421 HttpConnection conn = (HttpConnection)key.attachment();
428 public void handle (SocketChannel chan, HttpConnection conn)
463 private void closeConnection(HttpConnection conn) {
486 HttpConnection connection;
495 Exchange (SocketChannel chan, String protocol, HttpConnection conn) throws IOException {
774 void requestStarted (HttpConnection c) {
787 void requestCompleted (HttpConnection c) {
796 void responseCompleted (HttpConnection c) {
807 LinkedList<HttpConnection> toClose = new LinkedList<HttpConnection>();
811 for (HttpConnection c : idleConnections) {
816 for (HttpConnection c : toClose) {
829 LinkedList<HttpConnection> toClose = new LinkedList<HttpConnection>();
833 for (HttpConnection c : reqConnections) {
838 for (HttpConnection c : toClose) {
846 toClose = new LinkedList<HttpConnection>();
849 for (HttpConnection c : rspConnections) {
854 for (HttpConnection c : toClose) {