if (!scheme.equalsIgnoreCase("http"))
throw new IllegalArgumentException("The URI scheme, of the URI " + u +
", must be equal (ignoring case) to 'http'");
if (adapter instanceof GrizzlyAdapter) {
GrizzlyAdapter ga = (GrizzlyAdapter)adapter;
ga.setResourcesContextPath(u.getRawPath());
}
final SelectorThread selectorThread = new SelectorThread();
selectorThread.setAlgorithmClassName(StaticStreamAlgorithm.class.getName());