@ComponentProfile(summary="Render an XML representation of the schema violations as standard metadata", since="3.10.2") public class ViolationsAsMetadata extends ViolationHandlerImpl
SchemaViolations
and adds it as standard metadata.
This renders any schema violations as XML and stores it as standard metadata against the specified key.
In the adapter configuration file this class is aliased as schema-violations-as-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
DEFAULT_KEY
Constructor and Description |
---|
ViolationsAsMetadata() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMetadataKey() |
protected void |
render(SchemaViolations violations,
AdaptrisMessage msg) |
void |
setMetadataKey(java.lang.String metadataKey)
The metadata key.
|
ViolationsAsMetadata |
withMetadataKey(java.lang.String key) |
handle, toString
protected void render(SchemaViolations violations, AdaptrisMessage msg) throws ServiceException
render
in class ViolationHandlerImpl
ServiceException
public ViolationsAsMetadata withMetadataKey(java.lang.String key)
public java.lang.String getMetadataKey()
public void setMetadataKey(java.lang.String metadataKey)
If not explicitly specified defaults to "schema_violations"