|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.sarxos.webcam.ds.ipcam.IpCamDeviceRegistry
public class IpCamDeviceRegistry
Class used to register IP camera devices.
Constructor Summary | |
---|---|
IpCamDeviceRegistry()
|
Method Summary | |
---|---|
static List<IpCamDevice> |
getIpCameras()
Get all registered IP cameras. |
static boolean |
isRegistered(IpCamDevice ipcam)
Is device registered? |
static boolean |
isRegistered(String name)
Is device with given name registered? |
static boolean |
isRegistered(URI uri)
Is device with given URL registered? |
static boolean |
isRegistered(URL url)
Is device with given URL registered? |
static IpCamDevice |
register(IpCamDevice ipcam)
Register IP camera. |
static IpCamDevice |
register(String name,
String url,
IpCamMode mode)
|
static IpCamDevice |
register(String name,
String url,
IpCamMode mode,
IpCamAuth auth)
|
static IpCamDevice |
register(String name,
URL url,
IpCamMode mode)
|
static IpCamDevice |
register(String name,
URL url,
IpCamMode mode,
IpCamAuth auth)
Register new IP camera device. |
static boolean |
unregister(IpCamDevice ipcam)
Unregister IP camera. |
static boolean |
unregister(String name)
Unregister IP camera with given name. |
static void |
unregisterAll()
Removes all registered devices. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IpCamDeviceRegistry()
Method Detail |
---|
public static IpCamDevice register(IpCamDevice ipcam)
ipcam
- the IP camera to be registerpublic static IpCamDevice register(String name, String url, IpCamMode mode) throws MalformedURLException
MalformedURLException
public static IpCamDevice register(String name, URL url, IpCamMode mode)
public static IpCamDevice register(String name, String url, IpCamMode mode, IpCamAuth auth) throws MalformedURLException
MalformedURLException
public static IpCamDevice register(String name, URL url, IpCamMode mode, IpCamAuth auth)
name
- the name of the deviceurl
- the URL to be usedmode
- the camera mode to be usedauth
- the optional settings if device supports authentication
public static boolean isRegistered(IpCamDevice ipcam)
ipcam
- the IP camera device
public static boolean isRegistered(String name)
name
- the name of device
public static boolean isRegistered(URL url)
url
- the URL used by device
public static boolean isRegistered(URI uri)
url
- the URL used by device
public static boolean unregister(IpCamDevice ipcam)
ipcam
- the IP camera to be unregisterpublic static boolean unregister(String name)
ipcam
- the IP camera to be unregisterpublic static List<IpCamDevice> getIpCameras()
public static void unregisterAll()
|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |