/** * A convenience method to check for schema validation config in the message context, and then in the service model. * Does not modify the Message context (other than what is done in the getContextualProperty itself) * * @param message * @param type */ public static SchemaValidationType getSchemaValidationType(Message message) { SchemaValidationType validationType = getOverrideSchemaValidationType(message); if (validationType == null) { validationType = getSchemaValidationTypeFromModel(message); } if (validationType == null) { validationType = SchemaValidationType.NONE; } return validationType; }
/** * A convenience method to check for schema validation config in the message context, and then in the service model. * Does not modify the Message context (other than what is done in the getContextualProperty itself) * * @param message * @param type */ public static SchemaValidationType getSchemaValidationType(Message message) { SchemaValidationType validationType = getOverrideSchemaValidationType(message); if (validationType == null) { validationType = getSchemaValidationTypeFromModel(message); } if (validationType == null) { validationType = SchemaValidationType.NONE; } return validationType; }
/** * A convenience method to check for schema validation config in the message context, and then in the service model. * Does not modify the Message context (other than what is done in the getContextualProperty itself) * * @param message */ public static SchemaValidationType getSchemaValidationType(Message message) { SchemaValidationType validationType = getOverrideSchemaValidationType(message); if (validationType == null) { validationType = getSchemaValidationTypeFromModel(message); } if (validationType == null) { Object obj = message.getContextualProperty(Message.SCHEMA_VALIDATION_ENABLED); if (obj != null) { validationType = getSchemaValidationType(obj); } } if (validationType == null) { validationType = SchemaValidationType.NONE; } return validationType; }
/** * A convenience method to check for schema validation config in the message context, and then in the service model. * Does not modify the Message context (other than what is done in the getContextualProperty itself) * * @param message */ public static SchemaValidationType getSchemaValidationType(Message message) { SchemaValidationType validationType = getOverrideSchemaValidationType(message); if (validationType == null) { validationType = getSchemaValidationTypeFromModel(message); } if (validationType == null) { Object obj = message.getContextualProperty(Message.SCHEMA_VALIDATION_ENABLED); if (obj != null) { validationType = getSchemaValidationType(obj); } } if (validationType == null) { validationType = SchemaValidationType.NONE; } return validationType; }