public class IpCamDeviceRegistry
extends java.lang.Object
Constructor and Description |
---|
IpCamDeviceRegistry() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<IpCamDevice> |
getIpCameras()
Get all registered IP cameras.
|
static boolean |
isRegistered(IpCamDevice ipcam)
Is device registered?
|
static boolean |
isRegistered(java.lang.String name)
Is device with given name registered?
|
static boolean |
isRegistered(java.net.URI uri)
Is device with given URL registered?
|
static boolean |
isRegistered(java.net.URL url)
Is device with given URL registered?
|
static IpCamDevice |
register(IpCamDevice ipcam)
Register IP camera.
|
static IpCamDevice |
register(java.lang.String name,
java.lang.String url,
IpCamMode mode) |
static IpCamDevice |
register(java.lang.String name,
java.lang.String url,
IpCamMode mode,
IpCamAuth auth) |
static IpCamDevice |
register(java.lang.String name,
java.net.URL url,
IpCamMode mode) |
static IpCamDevice |
register(java.lang.String name,
java.net.URL url,
IpCamMode mode,
IpCamAuth auth)
Register new IP camera device.
|
static boolean |
unregister(IpCamDevice ipcam)
Unregister IP camera.
|
static boolean |
unregister(java.lang.String name)
Unregister IP camera with given name.
|
static void |
unregisterAll()
Removes all registered devices.
|
public static IpCamDevice register(IpCamDevice ipcam)
ipcam
- the IP camera to be registerpublic static IpCamDevice register(java.lang.String name, java.lang.String url, IpCamMode mode) throws java.net.MalformedURLException
java.net.MalformedURLException
public static IpCamDevice register(java.lang.String name, java.net.URL url, IpCamMode mode)
public static IpCamDevice register(java.lang.String name, java.lang.String url, IpCamMode mode, IpCamAuth auth) throws java.net.MalformedURLException
java.net.MalformedURLException
public static IpCamDevice register(java.lang.String name, java.net.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 authenticationpublic static boolean isRegistered(IpCamDevice ipcam)
ipcam
- the IP camera devicepublic static boolean isRegistered(java.lang.String name)
name
- the name of devicepublic static boolean isRegistered(java.net.URL url)
url
- the URL used by devicepublic static boolean isRegistered(java.net.URI uri)
uri
- the URI used by devicepublic static boolean unregister(IpCamDevice ipcam)
ipcam
- the IP camera to be unregisterpublic static boolean unregister(java.lang.String name)
name
- the name of IP camera to be unregisterpublic static java.util.List<IpCamDevice> getIpCameras()
public static void unregisterAll()
Copyright © 2012-2018 Bartosz Firyn (SarXos). All Rights Reserved.