/**
* Configure the domain.xml proxied protocols.
*/
private void configureProxiedProtocols() {
PortUnificationPipeline pipeline = (PortUnificationPipeline)
selectorThread.getProcessorPipeline();
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
StringTokenizer st = new StringTokenizer(proxiedProtocols,",");
String className;
ProtocolFinder finder;
// By default, we must add an https finder if secure.
if (secure){
addProtocol(TLS,pipeline,classLoader);
}
String protocol;
while (st.hasMoreTokens()){
protocol = st.nextToken().toLowerCase();
if (protocol.equals(TLS) && secure){
continue;
} else if (protocol.equals(HTTP)){
continue;
}
addProtocol(protocol,pipeline,classLoader);
}
// Always add http finder at the end.
addProtocol(HTTP,pipeline,classLoader);
Iterator<String> iterator = supportedHandlers.iterator();
while(iterator.hasNext()){
ProtocolHandler handler =
(ProtocolHandler)loadInstance(iterator.next(),classLoader);
if (handler != null){
pipeline.addProtocolHandler(handler);
}
}
}