|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.buglabs.bug.module.camera.CameraModlet
public class CameraModlet
| Field Summary | |
|---|---|
static java.lang.String |
MODULE_ID
|
| Fields inherited from interface com.buglabs.services.ws.PublicWSProvider |
|---|
DELETE, GET, PACKAGE_ID, POST, PUT |
| Constructor Summary | |
|---|---|
CameraModlet(org.osgi.framework.BundleContext context,
int slotId,
java.lang.String moduleId)
|
|
| Method Summary | |
|---|---|
PublicWSDefinition |
discover(int operation)
|
IWSResponse |
execute(int operation,
java.lang.String input)
Execute a service. |
java.lang.String |
getDescription()
|
java.lang.String |
getFormat()
|
byte[] |
getImage()
|
java.io.InputStream |
getImageInputStream()
|
java.lang.String |
getModuleId()
Return the MODULE ID. |
java.lang.String |
getModuleName()
Get the human-readable name of this module. |
java.util.List |
getModuleProperties()
Return a list of IModuleProperty elements. |
java.lang.String |
getPublicName()
|
int |
getSlotId()
|
boolean |
setModuleProperty(IModuleProperty property)
Set a property. |
void |
setup()
Connect to any devices or do any initialization. |
void |
start()
Begin modlet. |
void |
stop()
Unregister services and release any resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MODULE_ID
| Constructor Detail |
|---|
public CameraModlet(org.osgi.framework.BundleContext context,
int slotId,
java.lang.String moduleId)
| Method Detail |
|---|
public java.lang.String getModuleId()
IModlet
getModuleId in interface IModletpublic int getSlotId()
getSlotId in interface IModletgetSlotId in interface IModuleControl
public void setup()
throws java.lang.Exception
IModlet
setup in interface IModletjava.lang.Exception
public void start()
throws java.lang.Exception
IModlet
start in interface IModletjava.lang.Exception
public void stop()
throws java.lang.Exception
IModlet
stop in interface IModletjava.lang.Exceptionpublic PublicWSDefinition discover(int operation)
discover in interface PublicWSProvideroperation - HTTP operation. See IPublicServiceProvider.GET, etc.
public IWSResponse execute(int operation,
java.lang.String input)
PublicWSProvider
execute in interface PublicWSProvideroperation - PublicWSProvider.GET, .PUT, .POST, .DELETE
public java.lang.String getPublicName()
getPublicName in interface PublicWSProviderpublic java.util.List getModuleProperties()
IModuleControlIModuleProperty elements.
getModuleProperties in interface IModuleControlpublic java.lang.String getModuleName()
IModuleControl
getModuleName in interface IModuleControlpublic boolean setModuleProperty(IModuleProperty property)
IModuleControl
setModuleProperty in interface IModuleControlpublic byte[] getImage()
getImage in interface ICameraDevicepublic java.io.InputStream getImageInputStream()
getImageInputStream in interface ICameraDevicepublic java.lang.String getFormat()
getFormat in interface ICameraDevicepublic java.lang.String getDescription()
getDescription in interface PublicWSProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||