Interface DataFeedFileSubmitter
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
AbstractSFTPSubmitter,CommerceManagerFeedAPISubmitter,MerchantCenterSFTPSubmitter
public interface DataFeedFileSubmitter
extends org.springframework.core.Ordered
By default,
AbstractFileFeedPublisher implementations will inject and delegate to
components of this type.
Capable of taking a source data file (ex: AbstractFileFeedPublisher.FilePublishContext.getLocalOutputFile()) and
submitting it to a destination.
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(DataFeedPublishRequestDetails requestDetails) Reports whether this component can handle processing a file submission for the givenDataFeedPublishRequestDetails.default intgetOrder()submit(AbstractFileFeedPublisher.FilePublishContext filePublishContext) SubmitsAbstractFileFeedPublisher.FilePublishContext.getLocalOutputFile()to the appropriate destination.
-
Method Details
-
canHandle
Reports whether this component can handle processing a file submission for the givenDataFeedPublishRequestDetails.- Parameters:
requestDetails- request details around the publish process- Returns:
- true if this component can handle the submission for the given file, false otherwise
-
submit
DataFeedFileSubmitResponseDetails submit(AbstractFileFeedPublisher.FilePublishContext filePublishContext) SubmitsAbstractFileFeedPublisher.FilePublishContext.getLocalOutputFile()to the appropriate destination.- Parameters:
filePublishContext- details around the file publish process- Returns:
- details about the success/failure of the operation
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-