Skip to content

Commit c1cc0a4

Browse files
committed
docs(http): note an excluded servlet can still be mounted directly
MetricsServlet is @HttpApiExcluded and stays mounted at /monitor/getstatsinfo; say in the annotation's javadoc that excluded means not registered through HttpApiRegistry, not unreachable.
1 parent 0d7e8c9 commit c1cc0a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎framework/src/main/java/org/tron/core/services/http/HttpApiExcluded.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
/**
1010
* Marks a concrete servlet under the registry-managed package as deliberately not exposed through
11-
* {@link HttpApiRegistry}, with the reason recorded on the class itself.
11+
* {@link HttpApiRegistry}, with the reason recorded on the class itself. Excluded does not mean
12+
* unreachable: a service can still mount such a servlet outside the registry, as the fullnode
13+
* service mounts {@code MetricsServlet} at {@code /monitor/getstatsinfo}.
1214
*
1315
* <p>{@link HttpApiRegistry} requires every concrete servlet in that package to carry either
1416
* {@link HttpApi} or this annotation. Without that rule a servlet could be added and simply never

0 commit comments

Comments
 (0)