com.buglabs.services.ws
Interface PublicWSProvider
- All Known Subinterfaces:
- PublicWSProvider2, PublicWSProviderWithParams
- All Known Implementing Classes:
- AccelerationWS, AudioWS, BUGBeeWS, BugNetWSProvider, CameraModlet, DefaultWSImplementation, DefaultWSImplementationWithParams, GPSModlet, GSMModlet, MotionWS, PBWS, SensorWS, StatusBar, VonHippelWS
public interface PublicWSProvider
This interface is a base interface for Bug services.
use PublicWSProvider2, this interface maintained for compatibility.
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.