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 SerializableThe TextblockRestService provides methods to access the content of a textbock in various ways.- Author:
- rsoika
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TextblockRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetTextBlock(String name)javax.ws.rs.core.ResponsegetTextBlockAsPage(String name)HTML Page returns the textblock content as a complete html page in standard output.javax.ws.rs.core.ResponsegetTextblockFile(String name, String file, javax.ws.rs.core.UriInfo uriInfo)javax.ws.rs.core.ResponsegetTextBlockPlain(String name)
-
-
-
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)
-
-