Skip to content

#263 Java routes API support for default filters #2191

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ctlove0523
Copy link
Contributor

@ctlove0523 ctlove0523 commented Mar 29, 2021

Fixes gh-263

public Map<String, Object> getMetadata() {
return Collections.unmodifiableMap(metadata);
}

public boolean isEnableDefaultFilter() {
Copy link
Member

Choose a reason for hiding this comment

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

This feels like additional functionality that is beyond the scope of simply supporting default filters via the java dsl. Please remove.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

route defined by java dsl use default filters is can incompatible change. especially when default filters has filter which can modify uri,if one request process by this filters more times,the url will not handled by any handlers.For this reason,i add a switch can control route use default filters or not.In future we may remove this.What's your suggestion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I still feel like it should be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok,i will remove it soon

@ctlove0523
Copy link
Contributor Author

@spencergibb i hava modify this PR,please review again thanks.

@ctlove0523 ctlove0523 requested a review from spencergibb April 7, 2021 11:16
@spencergibb spencergibb force-pushed the main branch 2 times, most recently from 1dc0e8a to 9efafe8 Compare November 8, 2021 21:37
@heowc
Copy link

heowc commented Mar 9, 2024

When will this PR be included in the release?

@spencergibb

@spring-cloud spring-cloud deleted a comment from ctlove0523 Mar 9, 2024
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.

Add default filters to routes create by route DSL
4 participants