Package org.apache.juneau.examples.rest
Class HelloWorldResource
java.lang.Object
org.apache.juneau.rest.servlet.RestObject
org.apache.juneau.rest.servlet.BasicRestObject
org.apache.juneau.examples.rest.HelloWorldResource
- All Implemented Interfaces:
BasicUniversalConfig
,DefaultConfig
,DefaultHtmlConfig
,BasicRestOperations
Sample REST resource that prints out a simple "Hello world!" message.
See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.juneau.rest.servlet.BasicRestObject
error, getFavIcon, getHtdoc, getStats, getSwagger
Methods inherited from class org.apache.juneau.rest.servlet.RestObject
doLog, getContext, getRequest, getResponse, log, log, setContext
-
Constructor Details
-
HelloWorldResource
public HelloWorldResource()
-
-
Method Details
-
sayHello
[HTTP GET /helloworld] Returns a simple string message.- Returns:
- A simple Hello-World message.
-