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

Support WebApplicationContext. #7

Merged
merged 4 commits into from
Nov 14, 2013
Merged

Support WebApplicationContext. #7

merged 4 commits into from
Nov 14, 2013

Conversation

haily2706
Copy link

No description provided.


import java.util.Map;

public class FilterConfiguration {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a Configuration object for servlet filters? Can't they just be bean references like all the other dropwizard components?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use bean references and add through this method addFilter(Filter filter, String urlPattern). In order to get urlPattern, I think, we should have DropwizardFilter interfact that is extended from javax.servle.Filter and provide getUrlPattern method. Then, all Filter bean will implement DropwizardFilter interface. How do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main reason, I can't use bean references, because DelegatingFilterProxy requires ServletContext to initiate.

@ptgoetz
Copy link
Contributor

ptgoetz commented Nov 6, 2013

Can we update the README.md with documentation concerning what this does and how to use it?

@haily2706
Copy link
Author

I updated README.md to reflect the changes

@ptgoetz
Copy link
Contributor

ptgoetz commented Nov 14, 2013

+1

ptgoetz added a commit that referenced this pull request Nov 14, 2013
Support WebApplicationContext.
@ptgoetz ptgoetz merged commit 256d918 into hmsonline:master Nov 14, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants