com.buglabs.bug.module.vonhippel.pub
Class VonHippelWS
java.lang.Object
com.buglabs.bug.module.vonhippel.pub.VonHippelWS
- All Implemented Interfaces:
- PublicWSProvider, PublicWSProvider2
public class VonHippelWS
- extends java.lang.Object
- implements PublicWSProvider2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VonHippelWS
public VonHippelWS(VonHippelModuleControl vhctl)
discover
public PublicWSDefinition discover(int operation)
- Specified by:
discover in interface PublicWSProvider
- Parameters:
operation - HTTP operation. See IPublicServiceProvider.GET, etc.
- Returns:
- The description of what the service requires and provides, or null of service does not support the passed operation.
execute
public IWSResponse execute(int operation,
java.lang.String input)
- Description copied from interface:
PublicWSProvider
- Execute a service. This is a proxy to a native OSGi style service.
- Specified by:
execute in interface PublicWSProvider
- Parameters:
operation - PublicWSProvider.GET, .PUT, .POST, .DELETE
- Returns:
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface PublicWSProvider
- Returns:
- A brief description of the service.
getPublicName
public java.lang.String getPublicName()
- Specified by:
getPublicName in interface PublicWSProvider
- Returns:
- Name that this service uses.
setPublicName
public void setPublicName(java.lang.String name)
- Description copied from interface:
PublicWSProvider2
- Set the name of the service. This can be done on registration.
- Specified by:
setPublicName in interface PublicWSProvider2