public class DefaultMediaPersistenceService extends java.lang.Object implements MediaPersistenceService
| Constructor and Description |
|---|
DefaultMediaPersistenceService() |
| Modifier and Type | Method and Description |
|---|---|
protected IntegrationApiMediaModel |
createMediaModel(java.lang.String mediaName) |
protected java.lang.String |
generateMediaName() |
protected MediaService |
getMediaService() |
protected ModelService |
getModelService() |
protected PropertiesConfiguration |
getPropertiesConfiguration() |
protected IntegrationApiMediaModel |
persistMedia(java.io.InputStream payload) |
java.util.List<IntegrationApiMediaModel> |
persistMedias(java.util.List<java.io.InputStream> payloads)
Persists the payloads.
|
void |
setMediaService(MediaService mediaService) |
void |
setModelService(ModelService modelService) |
void |
setPropertiesConfiguration(PropertiesConfiguration propertiesConfiguration) |
public java.util.List<IntegrationApiMediaModel> persistMedias(java.util.List<java.io.InputStream> payloads)
MediaPersistenceServicepersistMedias in interface MediaPersistenceServicepayloads - inbound request payloads to be persistedpayloads.
Number of medias returned is equal to number of payload input streams passed in.
If certain medias failed to persist, there will be null in the corresponding place of the returned list.protected IntegrationApiMediaModel persistMedia(java.io.InputStream payload)
protected IntegrationApiMediaModel createMediaModel(java.lang.String mediaName)
protected java.lang.String generateMediaName()
protected MediaService getMediaService()
public void setMediaService(MediaService mediaService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected PropertiesConfiguration getPropertiesConfiguration()
public void setPropertiesConfiguration(PropertiesConfiguration propertiesConfiguration)
Copyright © 2018 SAP SE. All Rights Reserved.