Package org.apache.tomcat.service.http

Examples of org.apache.tomcat.service.http.HttpAdapter


    Class c=Class.forName( classN );
    conn=(ServerConnector)c.newInstance();
      } catch(Exception ex) {
    ex.printStackTrace();
    //    return new HttpServerConnector();
    return new HttpAdapter();
      }
     
      if( conn != null ) {
    // set all the connector.x properties to the connector
    int off=key.length();
    Enumeration e=props.keys();
    while( e.hasMoreElements() ) {
        String n=(String)e.nextElement();
        if( n.startsWith( key )) {
      String pn=n.substring( off );
      conn.setProperty( pn, props.getProperty( n ) );
      //System.out.println("Set " + pn + " = " + props.getProperty(n ));
        }
    }
    return conn;
      }
  }
  // default
  //   HttpServerConnector con=new HttpServerConnector();
  return new HttpAdapter();
    }
View Full Code Here

TOP

Related Classes of org.apache.tomcat.service.http.HttpAdapter

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.