KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > HttpConnectionContext


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol;
5
6 import com.tc.async.api.EventContext;
7 import com.tc.bytes.TCByteBuffer;
8
9 import java.net.Socket JavaDoc;
10
11 public class HttpConnectionContext implements EventContext {
12
13   private final TCByteBuffer buffer;
14   private final Socket JavaDoc socket;
15
16   public HttpConnectionContext(Socket JavaDoc socket, TCByteBuffer buffer) {
17     this.socket = socket;
18     this.buffer = buffer;
19   }
20
21   public TCByteBuffer getBuffer() {
22     return buffer;
23   }
24
25   public Socket JavaDoc getSocket() {
26     return socket;
27   }
28
29 }
30
Popular Tags