package gov.nist.registry.ws.serviceclasses; import gov.nist.registry.common2.exception.MetadataException; import gov.nist.registry.common2.exception.XdsValidationException; import gov.nist.registry.common2.exception.XdsWSException; import gov.nist.registry.common2.registry.Metadata; import gov.nist.registry.common2.registry.MetadataSupport; import gov.nist.registry.common2.registry.Response; import gov.nist.registry.common2.registry.Validator; import org.apache.axiom.om.OMElement; import org.apache.axis2.AxisFault; public class RegistryB2doc extends RegistryB { public String getServiceName() { return "R.b 2Doc"; } public boolean runContentValidationService(Metadata m, Response response) throws MetadataException { Validator v = new Validator(m); v.ss2Doc(); String errs = v.getErrors(); if (errs.length() > 0) { response.add_error(MetadataSupport.XDSRegistryMetadataError, errs, "Test input incorrect", log_message); return false; } return true; } protected String getRTransactionName(OMElement ahqr) { return super.getRTransactionName(ahqr) + " 2Doc"; } }