01: package vicazh.hyperpool.stream.net.http;
02:
03: import java.io.*;
04: import java.util.logging.*;
05: import vicazh.hyperpool.Start;
06: import vicazh.hyperpool.stream.*;
07:
08: class ContentServerStream extends ServerStream {
09:
10: ContentServerStream(Session session, OutputStream outputstream) {
11: super (session, outputstream);
12: }
13:
14: public void write(int b) throws IOException {
15: if (((ContentConnection) connection).priority != null)
16: try {
17: ((Priorities) ((ListSelectorMBean) connection.element)
18: .getList())
19: .serverwrite(((ContentConnection) connection).priority);
20: } catch (Exception e) {
21: Start.logger.log(Level.SEVERE, e.getMessage(), e);
22: }
23: super.write(b);
24: }
25: }
|