@RestResource(title="Hello World example", path="/helloworld", description="Simplest possible REST resource") public class HelloWorldResource extends BasicRestServlet
Constructor and Description |
---|
HelloWorldResource() |
Modifier and Type | Method and Description |
---|---|
String |
sayHello()
GET request handler.
|
getOptions
destroy, getContext, getServletConfig, init, log, log, log, log, logObjects, service
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public HelloWorldResource()
@RestMethod(name="GET", path="/*") public String sayHello()
Copyright © 2018 Apache. All rights reserved.