Skip to content

Commit

Permalink
Add Javadoc about path patterns (#3626)
Browse files Browse the repository at this point in the history
Motivation:

I've missed adding Javadoc before merging the following PR:
#3562

Modifications:

- Add Javadoc to `AbstractBindingBuilder#exclude` and `RouteBuilder#exclude` methods.
  • Loading branch information
hyangtack authored Jun 14, 2021
1 parent 06ba9c7 commit e59bd34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ public AbstractBindingBuilder addRoute(Route route) {
/**
* Adds a {@code pathPattern} that is supposed to be excluded from the {@link Route}s built by this
* {@link AbstractBindingBuilder}.
* Please refer to <a href="https://armeria.dev/docs/server-basics#path-patterns">Path patterns</a>
* to learn more about path pattern syntax.
*/
public AbstractBindingBuilder exclude(String pathPattern) {
requireNonNull(pathPattern, "pathPattern");
Expand Down Expand Up @@ -475,4 +477,3 @@ final List<Route> buildRouteList(Collection<Route> fallbackRoutes) {
return builder.build();
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ RouteBuilder fallback(boolean isFallback) {
/**
* Adds a {@code pathPattern} that is supposed to be excluded from the {@link Route} built by this
* {@link RouteBuilder}.
* Please refer to <a href="https://armeria.dev/docs/server-basics#path-patterns">Path patterns</a>
* to learn more about path pattern syntax.
*/
RouteBuilder exclude(String pathPattern) {
requireNonNull(pathPattern, "pathPattern");
Expand Down

0 comments on commit e59bd34

Please sign in to comment.