isUsingAuthAnnot = isUsingAuthAnnot || authorizeInvocation != null;
if (methodMapped != null)
{
HttpMethod httpMethod = methodMapped.httpMethod();
MethodMappingInfo methodMappingInfo = new MethodMappingInfo(methodMapped, method);
if (!webSerialDeserial.isMimeTypeSupported(methodMappingInfo.getInputFormat()) ||
!webSerialDeserial.isMimeTypeSupported(methodMappingInfo.getOutputFormat()))
throw new WicketRuntimeException(
"Mapped methods use a MIME type not supported by obj serializer/deserializer!");
mappedMethods.addValue(
methodMappingInfo.getSegmentsCount() + "_" + httpMethod.getMethod(),
methodMappingInfo);
}
}
// if AuthorizeInvocation has been found but no role-checker has been
// configured, throw an exception