Last podcast servlet v. 1.3

This component lets you download the latest media file (e.g. the latest mp3 file) from the given podcast. You can provide URL for podcast's RSS feed as a parameter for this servlet and component will download the latest data file from that podcast. E.g. you can use this servlet with some flash player on your site for getting the latest data from podcast. How to use it:

1) download lastpodPackage.jar and save it in WEB-INF/lib

2) describe LastPodcast servlet in web.xml file. You have to provide an initial parameter - RSS feed for the podcast. Parameter's name is rssUrl. Optionally you can provide your proxy settings: proxyHost and proxyPort. You can set also an optional initial parameter expires. This parameter describes a caching time (in seconds) for the data (client side cache).  


    <servlet>
     <servlet-name>LastPodcast</servlet-name>
     <servlet-class>com.jsos.lastpod.LastPodServlet</servlet-class>
     <init-param>
      <param-name>rssUrl</param-name>
      <param-value>url_for_rss_feed</param-value>
     </init-param>
    </servlet>

3) define a mapping:
 


    <servlet-mapping>
     <servlet-name>LastPodcast</servlet-name>
     <url-pattern>/servlet/LastPodcast</url-pattern>
    </servlet-mapping>

and now you can use it:
 


http://your_host/servlet/LastPodcast

(you can directly use this servlet in your media player). Also you can provide rssUrl parameter right as a request parameter for this servlet:
 


http://your_host/servlet/LastPodcast?rssUrl=your_feed

For downloading:

servlet: lastpodPackage.jar  
 

 © Coldbeans    Comments?
 

See also JSOS - the largest collection of servlets and filters.

Also in JSOS: