Class HelloWorldRestEndpoint

java.lang.Object
org.opencastproject.helloworld.impl.endpoint.HelloWorldRestEndpoint

@Path("/helloworld") public class HelloWorldRestEndpoint extends Object
The REST endpoint for the HelloWorldService service
  • Field Details

    • docs

      protected String docs
      The rest docs
    • helloWorldService

      protected HelloWorldService 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 Exception
      Simple 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

      @GET @Produces("text/html") @Path("docs") public String getDocs()
    • setHelloWorldService

      public void setHelloWorldService(HelloWorldService service)