uk.co.caprica.vlcj.mrl
Class WebMrl

java.lang.Object
  extended by uk.co.caprica.vlcj.mrl.WebMrl
All Implemented Interfaces:
Mrl
Direct Known Subclasses:
FtpMrl, HttpMrl, MmsMrl, RtspMrl

public class WebMrl
extends java.lang.Object
implements Mrl

Implementation for a web-style MRL. // TODO perhaps this should simply have been UrlMrl?

This class provides a fluent API for initialising the MRL, e.g.

 String mrl = new WebMrl().type("http")
                          .host("www.myhost.com")
                          .port("8080")
                          .path("/media/example.mp4")
                          .value();
 
This will generate "http://www.myhost.com:8080/media/example.mp4".


Constructor Summary
WebMrl()
           
 
Method Summary
 WebMrl host(java.lang.String host)
           
 WebMrl path(java.lang.String path)
           
 WebMrl port(int port)
           
 WebMrl type(java.lang.String type)
           
 java.lang.String value()
          Get the media resource locator value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebMrl

public WebMrl()
Method Detail

type

public WebMrl type(java.lang.String type)

host

public WebMrl host(java.lang.String host)

port

public WebMrl port(int port)

path

public WebMrl path(java.lang.String path)

value

public java.lang.String value()
Description copied from interface: Mrl
Get the media resource locator value

Specified by:
value in interface Mrl
Returns:
media resource locator

(C)2010 Caprica Software Limited