Class GetTransImageServlet

    • Constructor Detail

      • GetTransImageServlet

        public GetTransImageServlet()
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          IOException

        /kettle/transImage

        GET

        Generates PNG image of the specified transformation currently present on Carte server. Transformation name and Carte transformation ID (optional) are used for specifying which transformation to get information for. Response is a binary of the PNG image.

        Example Request:

            GET /kettle/transImage?name=dummy-trans
            

        Parameters

        name description type
        name Name of the transformation to be used for image generation. query
        id Carte id of the transformation to be used for image generation. query, optional

        Response Body

        binary streak: image
        media types: image/png

        A binary PNG image or empty response is presented if no transformation is found.

        Status Codes

        code description
        200 Request was processed.
        500 Internal server error occurs during request processing.
        Specified by:
        doGet in interface CartePluginInterface
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException