Class CommerceManagerFeedAPISubmitter
java.lang.Object
com.broadleafcommerce.datafeed.feedprovider.meta.api.publisher.file.CommerceManagerFeedAPISubmitter
- All Implemented Interfaces:
- DataFeedFileSubmitter,- org.springframework.core.Ordered
DataFeedFileSubmitter for API uploads of Meta datafeeds.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionCommerceManagerFeedAPISubmitter(com.broadleafcommerce.common.extension.TypeFactory typeFactory, org.springframework.web.reactive.function.client.WebClient client) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected DataFeedFileSubmitResponseDetailsGenerate a response for a successful submissionbooleancanHandle(DataFeedPublishRequestDetails requestDetails) Reports whether this component can handle processing a file submission for the givenDataFeedPublishRequestDetails.protected org.springframework.web.reactive.function.client.WebClientprotected com.broadleafcommerce.common.extension.TypeFactoryprotected DataFeedFileSubmitResponseDetailshandleFailedResponse(AbstractFileFeedPublisher.FilePublishContext filePublishContext, Exception e) Handle an exception occurring during submissionsubmit(AbstractFileFeedPublisher.FilePublishContext filePublishContext) SubmitsAbstractFileFeedPublisher.FilePublishContext.getLocalOutputFile()to the appropriate destination.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.datafeed.service.publisher.file.submitter.DataFeedFileSubmittergetOrder
- 
Constructor Details- 
CommerceManagerFeedAPISubmitterpublic CommerceManagerFeedAPISubmitter(com.broadleafcommerce.common.extension.TypeFactory typeFactory, org.springframework.web.reactive.function.client.WebClient client) 
 
- 
- 
Method Details- 
canHandleDescription copied from interface:DataFeedFileSubmitterReports whether this component can handle processing a file submission for the givenDataFeedPublishRequestDetails.- Specified by:
- canHandlein interface- DataFeedFileSubmitter
- Parameters:
- requestDetails- request details around the publish process
- Returns:
- true if this component can handle the submission for the given file, false otherwise
 
- 
submitpublic DataFeedFileSubmitResponseDetails submit(AbstractFileFeedPublisher.FilePublishContext filePublishContext) Description copied from interface:DataFeedFileSubmitterSubmitsAbstractFileFeedPublisher.FilePublishContext.getLocalOutputFile()to the appropriate destination.- Specified by:
- submitin interface- DataFeedFileSubmitter
- Parameters:
- filePublishContext- details around the file publish process
- Returns:
- details about the success/failure of the operation
 
- 
handleFailedResponseprotected DataFeedFileSubmitResponseDetails handleFailedResponse(AbstractFileFeedPublisher.FilePublishContext filePublishContext, Exception e) Handle an exception occurring during submission- Parameters:
- filePublishContext- details around the file publish process
- e- The exception that occurred
- Returns:
- The response details (including the error details)
 
- 
buildSuccessfulResponseGenerate a response for a successful submission- Returns:
- response for a successful submission
 
- 
getSupportedFeedProcessTypes
- 
getTypeFactoryprotected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
- 
getClientprotected org.springframework.web.reactive.function.client.WebClient getClient()
 
-