Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.ServerInterface


    reply.setState(JigsawHttpServletResponse.STREAM, pos);
    reply.setStream(pis);
    Object o = new Object();
    reply.setState(JigsawHttpServletResponse.MONITOR, o);
    // wait until the reply is constructed by the processing thread
    ServerInterface server = getServer();
    if (server instanceof httpd) {
        synchronized (o) {
      wrapper.service(request, reply);
      o.wait((long)((httpd)server).getRequestTimeOut());
        }
View Full Code Here


     * @param socket The socket this client should now handle.
     */

    protected synchronized void bind(Socket socket) {
  done = false;
  ServerInterface server = getServer();
  if ( trace )
      System.out.println(this+": bind.");
  this.socket = socket ;
        try {
//            socket.setSoTimeout(server.getRequestTimeOut());
      socket.setSoTimeout(pool.timeout);
        } catch (SocketException ex) {
      if (trace)
    ex.printStackTrace();
      server.errlog("Unable to set socket timeout!");
        }
  this.idle   = false;
  bindcount++;
  pool.run(this);
    }
View Full Code Here

TOP

Related Classes of org.w3c.tools.resources.ServerInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.