Bartosz Firyn (SarXos)

com.github.sarxos.webcam.ds.ipcam
Class IpCamDeviceRegistry

java.lang.Object
  extended by com.github.sarxos.webcam.ds.ipcam.IpCamDeviceRegistry

public class IpCamDeviceRegistry
extends Object

Class used to register IP camera devices.

Author:
Bartosz Firyn (SarXos)

Constructor Summary
IpCamDeviceRegistry()
           
 
Method Summary
static List<IpCamDevice> getIpCameras()
          Get all registered IP cameras.
static boolean isRegistered(IpCamDevice ipcam)
           
static boolean isRegistered(String name)
           
static boolean isRegistered(URL url)
           
static void register(IpCamDevice ipcam)
          Register IP camera.
static void register(String name, URL url, IpCamMode mode)
           
static void register(String name, URL url, IpCamMode mode, IpCamAuth auth)
           
static void unregister(IpCamDevice ipcam)
          Unregister IP camera.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpCamDeviceRegistry

public IpCamDeviceRegistry()
Method Detail

register

public static void register(IpCamDevice ipcam)
Register IP camera.

Parameters:
ipcam - the IP camera to be register

register

public static void register(String name,
                            URL url,
                            IpCamMode mode)

register

public static void register(String name,
                            URL url,
                            IpCamMode mode,
                            IpCamAuth auth)

isRegistered

public static boolean isRegistered(IpCamDevice ipcam)

isRegistered

public static boolean isRegistered(String name)

isRegistered

public static boolean isRegistered(URL url)

unregister

public static void unregister(IpCamDevice ipcam)
Unregister IP camera.

Parameters:
ipcam - the IP camera to be unregister

getIpCameras

public static List<IpCamDevice> getIpCameras()
Get all registered IP cameras.

Returns:
Collection of registered IP cameras

Bartosz Firyn (SarXos)

Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.