listener.setLowResourcePersistTimeMs(value);
}
}
server.addListener(listener);
} else if ("sun-jsse".equals(props.getProperty("type").value)) {
SunJsseListener listener = new SunJsseListener();
setListenerOptions(listener, props);
if (props.getProperty("keystore") != null) {
listener.setKeystore(props.getProperty("keystore").value);
}
if (props.getProperty("password") != null) {
listener.setPassword(props.getProperty("password").value);
}
if (props.getProperty("key-password") != null) {
listener.setKeyPassword(props.getProperty("key-password").value);
}
if (props.getProperty("need-client-auth") != null) {
boolean needClientAuth = "true".equalsIgnoreCase(props.getProperty("need-client-auth").value);
listener.setNeedClientAuth(needClientAuth);
}
if (props.getProperty("identify-listener") != null) {
boolean identifyListener = "true".equalsIgnoreCase(props.getProperty("identify-listener").value);
listener.setIdentifyListener(identifyListener);
}
if (props.getProperty("buffer-size") != null) {
int value = 0;
try {
value = Integer.parseInt(props.getProperty("buffer-size").value);
} catch (NumberFormatException e) {
value = 0;
}
if (value > 0) {
listener.setBufferSize(value);
}
}
if (props.getProperty("low-resource-persist-time") != null) {
int value = 0;
try {
value = Integer.parseInt(props.getProperty("low-resource-persist-time").value);
} catch (NumberFormatException e) {
value = 0;
}
if (value > 0) {
listener.setLowResourcePersistTimeMs(value);
}
}
server.addListener(listener);
} else if ("ibm-jsse".equals(props.getProperty("type").value)) {
throw new ContainerException("Listener not supported yet [" + props.getProperty("type").value + "]");
} else if ("nio".equals(props.getProperty("type").value)) {
throw new ContainerException("Listener not supported yet [" + props.getProperty("type").value + "]");
} else if ("ajp13".equals(props.getProperty("type").value)) {
AJP13Listener listener = new AJP13Listener();
setListenerOptions(listener, props);
if (props.getProperty("identify-listener") != null) {
boolean identifyListener = "true".equalsIgnoreCase(props.getProperty("identify-listener").value);
listener.setIdentifyListener(identifyListener);
}
if (props.getProperty("buffer-size") != null) {
int value = 0;
try {
value = Integer.parseInt(props.getProperty("buffer-size").value);
} catch (NumberFormatException e) {
value = 0;
}
if (value > 0) {
listener.setBufferSize(value);
}
}
server.addListener(listener);
}
} else if ("request-log".equals(props.value)) {