uk.co.caprica.vlcj.mrl
Class WebMrl
java.lang.Object
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"
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebMrl
public WebMrl()
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