Class PushPublishHTTPCupertinoUtil
- Object
- 
- com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoUtil
 
- 
- All Implemented Interfaces:
- IPushPublishProfileUtil
 
 public class PushPublishHTTPCupertinoUtil extends Object implements IPushPublishProfileUtil 
- 
- 
Field SummaryFields Modifier and Type Field Description static Class<PushPublishHTTPCupertinoUtil>CLASSstatic StringCLASSNAMEstatic StringHTTPADAPTER_NAMEstatic StringPROPERTYNAME_TRACKER- 
Fields inherited from interface com.wowza.wms.pushpublish.model.IPushPublishProfileUtilPROPERTY_LOG_DEBUG_MANIFEST
 
- 
 - 
Constructor SummaryConstructors Constructor Description PushPublishHTTPCupertinoUtil()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTagToPlaylist(PlaylistModel playlist, int idx, TagModel tag)Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist ModelvoidaddTagToPlaylist(PlaylistModel playlist, TagModel tag)Adds the provided TagModel to the end of the list of TagModels for the provided Playlist ModelManifestModelcreateGroupPlaylist(String id, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties)This method is deprecated.PlaylistModelcreateMasterPlaylist(String context, boolean logDebugManifest)Creates a master playlist and propagates the context string from this implemenation to the returned playlist modelPlaylistModelcreateMediaPlaylist(int renditionIdx, PushPublishHTTPCupertino hlsEntry, String context, boolean logDebugManifest)Creates a empty media playlist and propagates the context from this implemenation to the returned playlistMediaSegmentModelcreateMediaSegmentModel(boolean debugLog)Creates an empty media segment model and propagates the context from the implementation to the returnd media segment modelTagModelcreateTag(Class<? extends TagModel> clazz, String context)Create a TagModel of the provided TagModelPlaylistModelgetMediaPlaylistForRendtion(PlaylistModel masterPlaylist, int renditionIndex)intgetMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist)StringgetMediaSegementProgramDateTime(MediaSegmentModel mediaSegment)longgetMediaSegementSize(MediaSegmentModel mediaSegment)longgetMediaSegmentIndex(MediaSegmentModel mediaSegment)booleanisMediaSegmentDelete(MediaSegmentModel mediaSegment)booleanisMediaSegmentSent(MediaSegmentModel mediaSegment)booleanisParent(java.util.Map<String,String> entry)Is this a parent profile?voidonDeleteEntry(java.util.Map<String,String> entry)Allows processing of a map file entry prior to being deleted.voidonReadEntry(java.util.Map<String,String> entry)Allows modification of a map file entry after prior to being returned through a Push Publishing api.voidonWriteEntry(java.util.Map<String,String> oldEntry, java.util.Map<String,String> newEntry)Allows modification of a map file entry prior to being written to the map file.voidsetApplicationInstance(IApplicationInstance appInstance)Set the application instance associated with this Util classvoidsetApplicationName(String appName)Set the application name associated with this Util classvoidsetMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist, int index)voidsetMediaSegementProgramDateTime(MediaSegmentModel mediaSegment, String progDateTime)voidsetMediaSegementSize(MediaSegmentModel mediaSegment)voidsetMediaSegmentDelete(MediaSegmentModel mediaSegment, boolean delete)voidsetMediaSegmentIndex(MediaSegmentModel mediaSegment, long index)voidsetMediaSegmentSent(MediaSegmentModel mediaSegment, boolean sent)voidsetVHost(IVHost vhost)Set the VHost associated with this Util classbooleanvalidateEntry(java.util.Map<String,String> entry)Allows validation of a map file entry.
 
- 
- 
- 
Field Detail- 
CLASSpublic static final Class<PushPublishHTTPCupertinoUtil> CLASS 
 - 
CLASSNAMEpublic static final String CLASSNAME - See Also:
- Constant Field Values
 
 - 
PROPERTYNAME_TRACKERpublic static final String PROPERTYNAME_TRACKER - See Also:
- Constant Field Values
 
 - 
HTTPADAPTER_NAMEpublic static final String HTTPADAPTER_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
onWriteEntrypublic void onWriteEntry(java.util.Map<String,String> oldEntry, java.util.Map<String,String> newEntry)Description copied from interface:IPushPublishProfileUtilAllows modification of a map file entry prior to being written to the map file.- Specified by:
- onWriteEntryin interface- IPushPublishProfileUtil
- Parameters:
- oldEntry- the old version of the entry (null for new entries)
- newEntry- the new version of the entry to be written
 
 - 
onReadEntrypublic void onReadEntry(java.util.Map<String,String> entry) Description copied from interface:IPushPublishProfileUtilAllows modification of a map file entry after prior to being returned through a Push Publishing api.- Specified by:
- onReadEntryin interface- IPushPublishProfileUtil
- Parameters:
- entry- the map file entry as read from disk
 
 - 
onDeleteEntrypublic void onDeleteEntry(java.util.Map<String,String> entry) Description copied from interface:IPushPublishProfileUtilAllows processing of a map file entry prior to being deleted.- Specified by:
- onDeleteEntryin interface- IPushPublishProfileUtil
- Parameters:
- entry- the map file entry as read from disk
 
 - 
validateEntrypublic boolean validateEntry(java.util.Map<String,String> entry) Description copied from interface:IPushPublishProfileUtilAllows validation of a map file entry.- Specified by:
- validateEntryin interface- IPushPublishProfileUtil
- Parameters:
- entry- the map file entry as read from disk
- Returns:
- true if entry is valid
 
 - 
isParentpublic boolean isParent(java.util.Map<String,String> entry) Description copied from interface:IPushPublishProfileUtilIs this a parent profile?- Specified by:
- isParentin interface- IPushPublishProfileUtil
- Parameters:
- entry- the map file entry as read from disk
- Returns:
- true if entry is a parent profile, false if child profile or standalone
 
 - 
createGroupPlaylistpublic ManifestModel createGroupPlaylist(String id, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties) Description copied from interface:IPushPublishProfileUtilThis method is deprecated. Please useIPushPublishHTTPGroupMember#createGroupPlaylist(String, ListAllows creation of a group playlist. (This is a placeholder for future features)- >, List
 - >, IApplicationInstance, String, WMSProperties)
 - Specified by:
- createGroupPlaylistin interface- IPushPublishProfileUtil
- Parameters:
- id- the id
- groupingsByRedundantPairs- the renditions grouped by redundant pairs
- groupingsByAbrGroups- the renditions grouped by redundant ABR group
- properties- the properties
- Returns:
- the manifest model
 
 - 
createTagpublic TagModel createTag(Class<? extends TagModel> clazz, String context) Create a TagModel of the provided TagModel- Parameters:
- clazz- Class of the TagModel to create
- Returns:
- a new instance of the TagModel requested
 
 - 
addTagToPlaylistpublic void addTagToPlaylist(PlaylistModel playlist, TagModel tag) Adds the provided TagModel to the end of the list of TagModels for the provided Playlist Model- Parameters:
- playlist- to add the TagModel to
- tag- to add to the playlist
 
 - 
addTagToPlaylistpublic void addTagToPlaylist(PlaylistModel playlist, int idx, TagModel tag) Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist Model- Parameters:
- playlist- to add the TagModel to
- idx- index where to insert the TagModel at
- tag- Model to insert into the list of TagModels
 
 - 
createMasterPlaylistpublic PlaylistModel createMasterPlaylist(String context, boolean logDebugManifest) Creates a master playlist and propagates the context string from this implemenation to the returned playlist model- Returns:
- a new master playlist
 
 - 
createMediaPlaylistpublic PlaylistModel createMediaPlaylist(int renditionIdx, PushPublishHTTPCupertino hlsEntry, String context, boolean logDebugManifest) Creates a empty media playlist and propagates the context from this implemenation to the returned playlist- Returns:
- a new media playlist
 
 - 
createMediaSegmentModelpublic MediaSegmentModel createMediaSegmentModel(boolean debugLog) Creates an empty media segment model and propagates the context from the implementation to the returnd media segment model- Returns:
- media segment model
 
 - 
setMediaPlaylistRenditionIndexpublic void setMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist, int index) 
 - 
getMediaPlaylistRenditionIndexpublic int getMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist) 
 - 
getMediaPlaylistForRendtionpublic PlaylistModel getMediaPlaylistForRendtion(PlaylistModel masterPlaylist, int renditionIndex) 
 - 
setMediaSegmentIndexpublic void setMediaSegmentIndex(MediaSegmentModel mediaSegment, long index) 
 - 
getMediaSegmentIndexpublic long getMediaSegmentIndex(MediaSegmentModel mediaSegment) 
 - 
setMediaSegmentDeletepublic void setMediaSegmentDelete(MediaSegmentModel mediaSegment, boolean delete) 
 - 
isMediaSegmentDeletepublic boolean isMediaSegmentDelete(MediaSegmentModel mediaSegment) 
 - 
setMediaSegmentSentpublic void setMediaSegmentSent(MediaSegmentModel mediaSegment, boolean sent) 
 - 
isMediaSegmentSentpublic boolean isMediaSegmentSent(MediaSegmentModel mediaSegment) 
 - 
setMediaSegementSizepublic void setMediaSegementSize(MediaSegmentModel mediaSegment) 
 - 
getMediaSegementSizepublic long getMediaSegementSize(MediaSegmentModel mediaSegment) 
 - 
setMediaSegementProgramDateTimepublic void setMediaSegementProgramDateTime(MediaSegmentModel mediaSegment, String progDateTime) 
 - 
getMediaSegementProgramDateTimepublic String getMediaSegementProgramDateTime(MediaSegmentModel mediaSegment) 
 - 
setVHostpublic void setVHost(IVHost vhost) Description copied from interface:IPushPublishProfileUtilSet the VHost associated with this Util class- Specified by:
- setVHostin interface- IPushPublishProfileUtil
 
 - 
setApplicationNamepublic void setApplicationName(String appName) Description copied from interface:IPushPublishProfileUtilSet the application name associated with this Util class- Specified by:
- setApplicationNamein interface- IPushPublishProfileUtil
 
 - 
setApplicationInstancepublic void setApplicationInstance(IApplicationInstance appInstance) Description copied from interface:IPushPublishProfileUtilSet the application instance associated with this Util class- Specified by:
- setApplicationInstancein interface- IPushPublishProfileUtil
 
 
- 
 
-