01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol;
05:
06: import com.tc.async.api.EventContext;
07: import com.tc.bytes.TCByteBuffer;
08:
09: import java.net.Socket;
10:
11: public class HttpConnectionContext implements EventContext {
12:
13: private final TCByteBuffer buffer;
14: private final Socket socket;
15:
16: public HttpConnectionContext(Socket 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 getSocket() {
26: return socket;
27: }
28:
29: }
|