connector.start();
CoyoteInvoker invoker = (CoyoteInvoker) connector.getServerInvoker();
Field field = CoyoteInvoker.class.getDeclaredField("protocolHandlers");
field.setAccessible(true);
List protocolHandlers = (List) field.get(invoker);
Http11Protocol protocolHandler = (Http11Protocol) protocolHandlers.iterator().next();
log.info("maxSavePostSize: " + protocolHandler.getMaxSavePostSize());
log.info("keepAlive: " + protocolHandler.getKeepAlive());
log.info("compression: " + protocolHandler.getCompression());
log.info("testObject: " + protocolHandler.getAttribute("testObject"));
log.info("soTimeout: " + protocolHandler.getSoTimeout());
log.info("tcpNoDelay: " + protocolHandler.getTcpNoDelay());
log.info("address: " + protocolHandler.getAddress());
assertEquals(new Integer(3), new Integer(protocolHandler.getMaxSavePostSize()));
assertEquals(Boolean.FALSE, new Boolean(protocolHandler.getKeepAlive()));
assertEquals("on", protocolHandler.getCompression());
assertEquals(new TestObject(5), protocolHandler.getAttribute("testObject"));
assertEquals(new Integer(7), new Integer(protocolHandler.getSoTimeout()));
assertEquals(Boolean.TRUE, new Boolean(protocolHandler.getTcpNoDelay()));
assertEquals(InetAddress.getLocalHost(), protocolHandler.getAddress());
StandardThreadExecutor executor = (StandardThreadExecutor) protocolHandler.getExecutor();
log.info("daemon: " + executor.isDaemon());
log.info("maxIdleTime: " + executor.getMaxIdleTime());
log.info("minSpareThreads: " + executor.getMinSpareThreads());
log.info("maxThreads: " + executor.getMaxThreads());
log.info("name: " + executor.getName());