@Service public class SubmitStructureResponseBuilderImpl extends java.lang.Object implements SubmitStructureResponseBuilder
Constructor and Description |
---|
SubmitStructureResponseBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
org.apache.xmlbeans.XmlObject |
buildErrorResponse(java.lang.Throwable th,
StructureReferenceBean errorBean,
SDMX_SCHEMA schemaVersion)
Returns an error response based on the submitted beans and exception
|
org.apache.xmlbeans.XmlObject |
buildSuccessResponse(SdmxBeans beans,
SDMX_SCHEMA schemaVersion)
Builds a success response based on the submitted beans
|
public org.apache.xmlbeans.XmlObject buildErrorResponse(java.lang.Throwable th, StructureReferenceBean errorBean, SDMX_SCHEMA schemaVersion)
SubmitStructureResponseBuilder
buildErrorResponse
in interface SubmitStructureResponseBuilder
th
- - the errorschemaVersion
- - the version of the schema to output the response inpublic org.apache.xmlbeans.XmlObject buildSuccessResponse(SdmxBeans beans, SDMX_SCHEMA schemaVersion)
SubmitStructureResponseBuilder
buildSuccessResponse
in interface SubmitStructureResponseBuilder
beans
- - the beans that were successfully submittedschemaVersion
- - the version of the schema to output the response in