public TransformServlet()

in src/main/java/org/apache/sling/thumbnails/internal/TransformServlet.java [80:99]


    public TransformServlet(@Reference ThumbnailSupport thumbnailSupport, @Reference Transformer transformer,
            @Reference TransformationServiceUser transformationServiceUser,
            @Reference TransformationCache transformationCache, @Reference RenditionSupport renditionSupport,
            BundleContext context) {
        this.renditionSupport = renditionSupport;
        this.thumbnailSupport = thumbnailSupport;
        this.transformer = transformer;
        this.transformationServiceUser = transformationServiceUser;
        this.transformationCache = transformationCache;

        log.info("Registering as servlet...");
        Dictionary<String, Object> properties = new Hashtable<>();
        properties.put("sling.servlet.methods", new String[] { "GET" });
        properties.put("sling.servlet.extensions", "transform");
        properties.put("sling.servlet.resourceTypes", thumbnailSupport.getSupportedTypes());

        this.servletRegistration = context.registerService(Servlet.class, this, properties);
        log.info("Transform servlet registered...");

    }