01: package vicazh.hyperpool.stream.net.http;
02:
03: import java.io.*;
04: import vicazh.hyperpool.*;
05:
06: class MonitorStream extends ServerStream {
07: MonitorStream(Session session, OutputStream outputstream) {
08: super (session, outputstream);
09: }
10:
11: public void head(String version, int code, String message)
12: throws IOException {
13: System.out.println(((MonitorConnection) connection).client
14: + " " + session.getClient().getMethod() + " "
15: + session.getClient().getFile());
16: synchronized (connection.element) {
17: ((Element) connection.element).sendAttribute(
18: MonitorServiceMBean.OPEN, new MonitorItem(
19: (MonitorConnection) connection));
20: }
21: super.head(version, code, message);
22: }
23: }
|