return contentType.indexOf('\n') + contentType.indexOf('\r') > -2;
}
static private void createAndSetExecutor(ProtocolHandler protocolHandler, String executorConfig)
{
Executor executor = new StandardThreadExecutor();
log.debug("setting executor to " + executor + " with properties:");
if (executorConfig != null)
{
String[] ss = executorConfig.split(",");
for (int i = 0; i < ss.length; i++)
{
int pos = ss[i].indexOf('=');
setProperty(executor, ss[i].substring(0, pos).trim(), ss[i].substring(pos + 1).trim());
log.debug(ss[i].substring(0, pos).trim() + ": " + ss[i].substring(pos + 1).trim());
}
}
try
{
executor.start();
}
catch (LifecycleException e)
{
log.warn("unable to start executor " + executor, e);
return;