Class TextblockRestService

java.lang.Object
org.imixs.workflow.office.rest.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:
  • Constructor Details

    • TextblockRestService

      public TextblockRestService()
  • Method Details

    • getTextBlock

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

      @GET @Path("/{name}/htmlpage") @Produces("text/html") public jakarta.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 jakarta.ws.rs.core.Response getTextBlockPlain(@PathParam("name") String name)
    • getTextblockFile

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