Hey there, curious as to how to accomplish the following:

(1) Create a temporary resource that doesn't get created in the JCR / map to a node
(2) Evaluate and include a script against the temporary resource

Thinking I may be on the right path with:

    ResourceMetadata meta = new ResourceMetadata();
    meta.setResolutionPath("synthetic");

    SyntheticResource r = new SyntheticResource(
        slingRequest.getResourceResolver(),
        meta,
        "path/to/resource/type"
    );

slingRequest.getRequestDispatcher(r, new RequestDispatcherOptions ()).include(slingRequest, slingResponse);

Any way to add properties to the `SyntheticResource`?
Is there a better way to accomplish something similar?

thanks,
Amit

Reply via email to