isDoHeadInvokeOnMessage = isOnRequestInvokeOnMessageReceived(clazz, "doHead", isInvokeOnMessageDefault);
}
private boolean isMethodMultithreaded(Class<HttpRequestHandler> clazz, String methodname, boolean dflt) {
Execution execution = clazz.getAnnotation(Execution.class);
if (execution != null) {
return (execution.value() == Execution.MULTITHREADED);
}
try {
Method meth = clazz.getMethod(methodname, new Class[] { IHttpExchange.class });
execution = meth.getAnnotation(Execution.class);
if (execution != null) {
return (execution.value() == Execution.MULTITHREADED);
}
} catch (NoSuchMethodException nsme) {
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("shouldn't occure because body handler has to have such a method " + nsme.toString());