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

Fix to support restlets that serve static content. #1129

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pulquero
Copy link

@pulquero pulquero commented Aug 8, 2015

RestletFrameworkServlet fails to support restlets that serve static content due to "No ClientDispatcher". This patch fixes this by creating an implicit Component in much the same way as ServerServlet.

@thboileau
Copy link
Contributor

Hi @pulquero
Do you think it would be useful to expose the component, and help user to configure it as it is the case in the SpringServerServlet class? cf http://restlet.com/technical-resources/restlet-framework/javadocs/2.3/jee/ext/org/restlet/ext/spring/SpringServerServlet.html#createComponent%28%29

@pulquero
Copy link
Author

pulquero commented Aug 8, 2015

I guess I could add a setComponentBeanName() and try lookup a Component from the spring context and if not, default to an implicit Component. Does that sound good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants