ServersConnection.java :  » Net » hyperpool-0.4.0 » vicazh » hyperpool » stream » net » http » Java Open Source

Java Open Source » Net » hyperpool 0.4.0 
hyperpool 0.4.0 » vicazh » hyperpool » stream » net » http » ServersConnection.java
package vicazh.hyperpool.stream.net.http;

import java.io.*;
import vicazh.hyperpool.stream.*;

class ServersConnection extends Connection {
  ServersConnection(Element element) {
    super(element);
  }

  protected Session getSession() {
    return new ServersSession(this);
  }

  int index;

  synchronized public void close() {
    super.close();
    notifyAll();
  }

  synchronized public void remove(Session session) {
    super.remove(session);
    if (getSessions().size() == 1)
      notify();
  }

  Priority priority;

  boolean isReverse;

  public void setServer(OutputStream outputstream) throws IOException {
    super.setServer(outputstream);
    isReverse = getServer().isReverse();
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.