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 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)
           
static boolean unregister(IpCamDevice ipcam)
          Unregister IP camera.
static boolean unregister(String name)
          Unregister IP camera with given name.
 
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 IpCamDevice register(IpCamDevice ipcam)
Register IP camera.

Parameters:
ipcam - the IP camera to be register

register

public static IpCamDevice register(String name,
                                   String url,
                                   IpCamMode mode)
                            throws MalformedURLException
Throws:
MalformedURLException

register

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

register

public static IpCamDevice register(String name,
                                   String url,
                                   IpCamMode mode,
                                   IpCamAuth auth)
                            throws MalformedURLException
Throws:
MalformedURLException

register

public static IpCamDevice 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 boolean unregister(IpCamDevice ipcam)
Unregister IP camera.

Parameters:
ipcam - the IP camera to be unregister

unregister

public static boolean unregister(String name)
Unregister IP camera with given name.

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.