public interface PagedMediaWriterFactoryMakerService
Provides an interface for a PagedMediaWriterFactoryMaker service. The purpose of this interface is to expose an implementation of a PagedMediaWriterFactoryMaker as an OSGi service.
To comply with this interface, an implementation must be thread safe and address both the possibility that only a single instance is created and used throughout and that new instances are created as desired.
| Modifier and Type | Method and Description |
|---|---|
PagedMediaWriterFactory |
getFactory(java.lang.String mediaType)
Gets a PagedMediaWriterFactory that supports the specified media type
|
java.util.Collection<java.lang.String> |
listMediaTypes()
Returns a list of supported Internet media types.
|
PagedMediaWriter |
newPagedMediaWriter(java.lang.String mediaType)
Creates a new PagedMediaWriter.
|
PagedMediaWriterFactory getFactory(java.lang.String mediaType) throws PagedMediaWriterConfigurationException
mediaType - the target Internet media typePagedMediaWriterConfigurationException - if the media type is not supportedPagedMediaWriter newPagedMediaWriter(java.lang.String mediaType) throws PagedMediaWriterConfigurationException
mediaType - the target Internet media typePagedMediaWriterConfigurationException - if the media type is not supportedjava.util.Collection<java.lang.String> listMediaTypes()