Class TextblockRestService

  • All Implemented Interfaces:
    Serializable

    @Named
    @RequestScoped
    @Path("/textblock")
    @Produces({"text/html","application/xhtml+xml","text/plain"})
    public class TextblockRestService
    extends Object
    implements Serializable
    The TextblockRestService provides methods to access the content of a textbock in various ways.
    Author:
    rsoika
    See Also:
    Serialized Form
    • Constructor Detail

      • TextblockRestService

        public TextblockRestService()
    • Method Detail

      • getTextBlock

        @GET
        @Path("/{name}/html")
        @Produces("text/html")
        public javax.ws.rs.core.Response getTextBlock​(@PathParam("name")
                                                      String name)
      • getTextBlockAsPage

        @GET
        @Path("/{name}/htmlpage")
        @Produces("text/html")
        public javax.ws.rs.core.Response getTextBlockAsPage​(@PathParam("name")
                                                            String name)
        HTML Page returns the textblock content as a complete html page in standard output. For this the method redirects the user to /pages/tex
        Parameters:
        name -
        Returns:
      • getTextBlockPlain

        @GET
        @Path("/{name}/text")
        @Produces("text/plain")
        public javax.ws.rs.core.Response getTextBlockPlain​(@PathParam("name")
                                                           String name)
      • getTextblockFile

        @GET
        @Path("/{name}/file/{file}")
        @Produces("text/plain")
        public javax.ws.rs.core.Response getTextblockFile​(@PathParam("name")
                                                          String name,
                                                          @PathParam("file") @Encoded
                                                          String file,
                                                          @Context
                                                          javax.ws.rs.core.UriInfo uriInfo)