com.buglabs.services.ws
Interface PublicWSProvider
- All Known Implementing Classes:
- CameraModlet, DefaultWSImplementation, GPSModlet, MotionWS, StatusBar
public interface PublicWSProvider
This interface is a base interface for Bug services.
- Author:
- ken
GET
static final int GET
- See Also:
- Constant Field Values
PUT
static final int PUT
- See Also:
- Constant Field Values
POST
static final int POST
- See Also:
- Constant Field Values
DELETE
static final int DELETE
- See Also:
- Constant Field Values
PACKAGE_ID
static final java.lang.String PACKAGE_ID
- See Also:
- Constant Field Values
discover
PublicWSDefinition discover(int operation)
- Parameters:
operation - HTTP operation. See IPublicServiceProvider.GET, etc.
- Returns:
- The description of what the service requires and provides.
execute
IWSResponse execute(int operation,
java.lang.String input)
- Execute a service. This is a proxy to a native OSGi style service.
- Parameters:
operation - PublicWSProvider.GET, .PUT, .POST, .DELETEinput -
- Returns:
getPublicName
java.lang.String getPublicName()
- Returns:
- Name that this service uses.
getDescription
java.lang.String getDescription()
- Returns:
- A brief description of the service.