final Mapping mapping = methodFound.getAnnotation( Mapping.class );
if ( mapping.value().length == 0 ) {
LOGGER.error( "Missing request URI in " + classFound.getName() + "." + methodFound.getName() + "(). Ignoring this mapping." );
return;
}
if ( mapping.method().length == 0 ) {
LOGGER.debug( "Mapping " + classFound.getName() + "." + methodFound.getName() + "() to default GET method." );
methods = new RequestMethod[] { RequestMethod.GET };
} else {
methods = mapping.method();
}