@Service public class SubmitSubscriptionResponseBuilderImpl extends java.lang.Object implements SubmitSubscriptionResponseBuilder
Constructor and Description |
---|
SubmitSubscriptionResponseBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
org.apache.xmlbeans.XmlObject |
buildErrorResponse(SubscriptionBean subscription,
SDMX_SCHEMA schemaVersion,
java.lang.Throwable th)
Returns an error response based on the submitted beans and exception
|
org.apache.xmlbeans.XmlObject |
buildSuccessResponse(java.util.Collection<SubscriptionBean> notifications,
SDMX_SCHEMA schemaVersion)
Builds a success response based on the submitted notifications
|
public SubmitSubscriptionResponseBuilderImpl()
public org.apache.xmlbeans.XmlObject buildErrorResponse(SubscriptionBean subscription, SDMX_SCHEMA schemaVersion, java.lang.Throwable th)
SubmitSubscriptionResponseBuilder
buildErrorResponse
in interface SubmitSubscriptionResponseBuilder
schemaVersion
- - the version of the schema to output the response inth
- - the errorpublic org.apache.xmlbeans.XmlObject buildSuccessResponse(java.util.Collection<SubscriptionBean> notifications, SDMX_SCHEMA schemaVersion)
SubmitSubscriptionResponseBuilder
buildSuccessResponse
in interface SubmitSubscriptionResponseBuilder
notifications
- - the notifications that were successfully submittedschemaVersion
- - the version of the schema to output the response in