public class ChainingMediaPackageSerializer extends Object implements MediaPackageSerializer
MediaPackageSerializer to be applied to the same
MediaPackage. For example if you enabled a redirect serializer to move urls from an old server to a new one
and a stream security serializer then the urls could be redirected and then signed.| Modifier and Type | Field and Description |
|---|---|
static int |
RANKING
This serializer should never be chained again and zero as a neutral ranking therefore seems to be appropriate
|
| Constructor and Description |
|---|
ChainingMediaPackageSerializer() |
| Modifier and Type | Method and Description |
|---|---|
URI |
decodeURI(URI uri)
This method is called every time a url is being read from a media package manifest.
|
URI |
encodeURI(URI uri)
This method is called every time a url is being written to a media package manifest.
|
int |
getRanking()
Identifies the serializer ranking number.
|
public static final int RANKING
public URI encodeURI(URI uri) throws URISyntaxException
MediaPackageSerializerencodeURI in interface MediaPackageSerializeruri - the url to encodeURISyntaxException - if the resulting URI contains syntax errorspublic URI decodeURI(URI uri) throws URISyntaxException
MediaPackageSerializerdecodeURI in interface MediaPackageSerializeruri - the original path from the manifestURISyntaxException - if the path cannot be converted into a urlpublic int getRanking()
MediaPackageSerializergetRanking in interface MediaPackageSerializerCopyright © 2009–2020 Opencast Project. All rights reserved.