Package org.imixs.workflow.office.rest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetTextBlock(String name) jakarta.ws.rs.core.ResponsegetTextBlockAsPage(String name) HTML Page returns the textblock content as a complete html page in standard output.jakarta.ws.rs.core.ResponsegetTextblockFile(String name, String file, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.ResponsegetTextBlockPlain(String name)
-
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
-