Class HelloWorldRestEndpoint
java.lang.Object
org.opencastproject.helloworld.impl.endpoint.HelloWorldRestEndpoint
The REST endpoint for the
HelloWorldService service-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe rest docsprotected HelloWorldServiceThe service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocs()javax.ws.rs.core.ResponseSimple example service call with parameterjavax.ws.rs.core.ResponseSimple example service callvoidsetHelloWorldService(HelloWorldService service)
-
Field Details
-
docs
The rest docs -
helloWorldService
The service
-
-
Constructor Details
-
HelloWorldRestEndpoint
public HelloWorldRestEndpoint()
-
-
Method Details
-
helloWorld
@GET @Path("helloworld") @Produces("text/plain") public javax.ws.rs.core.Response helloWorld() throws ExceptionSimple example service call- Returns:
- The Hello World statement
- Throws:
Exception
-
helloName
@GET @Path("helloname") @Produces("text/plain") public javax.ws.rs.core.Response helloName(@FormParam("name") String name) throws Exception Simple example service call with parameter- Parameters:
name- the optional name of the Person to greet- Returns:
- A Hello statement with optional name
- Throws:
Exception
-
getDocs
-
setHelloWorldService
-