public class ReadabilityInsightProvider extends BaseInsightProvider
Modifier and Type | Field and Description |
---|---|
static String |
I18N_KEY_READABILITY_DETAIL |
static String |
I18N_KEY_READABILITY_RESULT_DANGER |
static String |
I18N_KEY_READABILITY_RESULT_SUCCESS |
static String |
I18N_KEY_READABILITY_RESULT_WARN |
static String |
I18N_KEY_READABILITY_STATS |
static String |
READABILITY_CA_CONFIG |
Constructor and Description |
---|
ReadabilityInsightProvider() |
Modifier and Type | Method and Description |
---|---|
protected Insight |
doEvaluateRequest(InsightRequest request)
Method for the extending classes to implement, this can safely throw
exceptions and this will trigger a failure result to be returned.
|
String |
getId() |
String |
getTitle() |
boolean |
isEnabled(InsightRequest request) |
evaluateRequest
public static final String I18N_KEY_READABILITY_DETAIL
public static final String I18N_KEY_READABILITY_RESULT_DANGER
public static final String I18N_KEY_READABILITY_RESULT_SUCCESS
public static final String I18N_KEY_READABILITY_RESULT_WARN
public static final String I18N_KEY_READABILITY_STATS
public static final String READABILITY_CA_CONFIG
protected Insight doEvaluateRequest(InsightRequest request) throws Exception
doEvaluateRequest
in class BaseInsightProvider
request
- the request to evaluateException
- any exceptionpublic String getId()
public String getTitle()
public boolean isEnabled(InsightRequest request)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.