Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SlingPostProcessor Example #36

Open
dherges opened this issue Oct 27, 2015 · 3 comments
Open

SlingPostProcessor Example #36

dherges opened this issue Oct 27, 2015 · 3 comments

Comments

@dherges
Copy link
Contributor

dherges commented Oct 27, 2015

Hi dudes,

i a veeeery fascinating project, stranger things have happened because some people didn't know about SlingPostProcessor ... https://sling.apache.org/apidocs/sling7/org/apache/sling/servlets/post/SlingPostProcessor.html

Maybe we should get a very veeerrrrrry nice example into ACS samples :-)

I'll try to open up a PR asap...

@davidjgonzalez
Copy link
Contributor

+2!

There is a PropertyMergePostProcessor in ACS Commons that could provide the framework for a POST processor.

In typical ACS Samples fashion, we should ad guidance in the the class comments on when to use them and when not to, and what the potential downsides are (they are called on all invocations of the Sling POST Servlet)

@dherges
Copy link
Contributor Author

dherges commented Oct 27, 2015

(they are called on all invocations of the Sling POST Servlet)

yeah, we used it by writing a simple accepts(SlingHttpServletRequest) that checks whether the PostProcessor should/must be triggered ... usually like if("my/resource-type".equals(request.getResource().getResourceType()) ...

@davidjgonzalez
Copy link
Contributor

Perfect for the sample!!

dherges added a commit to dherges/acs-aem-samples that referenced this issue Oct 28, 2015
davidjgonzalez added a commit that referenced this issue Nov 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants