Class GreeterPlugin
java.lang.Object
org.gcube.service.helloworld.plugin.greeter.GreeterPlugin
- All Implemented Interfaces:
org.gcube.service.helloworld.plugin.HelloWorldPlugin,org.gcube.smartgears.plugins.ServicePlugin
public class GreeterPlugin
extends Object
implements org.gcube.service.helloworld.plugin.HelloWorldPlugin, org.gcube.smartgears.plugins.ServicePlugin
A plugin that greets whoever calls it. It implements
ServicePlugin to say what differs from
its service (it needs no token and answers at /plugins/greeter) and to receive its
configuration, hello-world-greeter-plugin.yaml: the word it greets with, greeting.
Its name, version and description come from the Maven packaging of its jar, its Contexts are the
ones of its service.- Author:
- Luca Frosini (ISTI-CNR)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gcube.smartgears.plugins.ServicePlugin
contexts, documentation
-
Field Details
-
ID
The identifier of the plugin.- See Also:
-
GREETING
The key of the configuration giving the word the plugin greets with.- See Also:
-
DEFAULT_GREETING
The word the plugin greets with when its configuration gives none.- See Also:
-
-
Constructor Details
-
GreeterPlugin
public GreeterPlugin()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.gcube.smartgears.plugins.ServicePlugin
-
id
- Specified by:
idin interfaceorg.gcube.service.helloworld.plugin.HelloWorldPlugin
-
greet
- Specified by:
greetin interfaceorg.gcube.service.helloworld.plugin.HelloWorldPlugin
-
authenticated
public boolean authenticated()- Specified by:
authenticatedin interfaceorg.gcube.smartgears.plugins.ServicePlugin
-
path
- Specified by:
pathin interfaceorg.gcube.smartgears.plugins.ServicePlugin
-