Skip to content

Commit 67931f9

Browse files
authored
Expose RestLiConfig from RestLiServer to access to final rest.li filter chain (#785)
1 parent f82cebe commit 67931f9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ and what APIs have changed, if applicable.
1414

1515
## [Unreleased]
1616

17+
## [29.33.5] - 2022-05-02
18+
- Expose RestLiConfig from RestLiServer.
19+
1720
## [29.33.4] - 2022-04-26
1821
- Support failout redirection in D2 client.
1922

@@ -5224,7 +5227,8 @@ patch operations can re-use these classes for generating patch messages.
52245227

52255228
## [0.14.1]
52265229

5227-
[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.33.4...master
5230+
[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.33.5...master
5231+
[29.33.5]: https://github.com/linkedin/rest.li/compare/v29.33.4...v29.33.5
52285232
[29.33.4]: https://github.com/linkedin/rest.li/compare/v29.33.3...v29.33.4
52295233
[29.33.3]: https://github.com/linkedin/rest.li/compare/v29.33.2...v29.33.3
52305234
[29.33.2]: https://github.com/linkedin/rest.li/compare/v29.33.1...v29.33.2

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=29.33.4
1+
version=29.33.5
22
group=com.linkedin.pegasus
33
org.gradle.configureondemand=true
44
org.gradle.parallel=true

restli-server/src/main/java/com/linkedin/restli/server/RestLiServer.java

+6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public class RestLiServer implements RestRequestHandler, RestToRestLiRequestHand
6363

6464
private final RestRestLiServer _restRestLiServer;
6565
private final StreamRestLiServer _streamRestLiServer;
66+
private final RestLiConfig _restliConfig;
6667

6768
public RestLiServer(RestLiConfig config)
6869
{
@@ -76,6 +77,7 @@ public RestLiServer(RestLiConfig config, ResourceFactory resourceFactory)
7677

7778
public RestLiServer(RestLiConfig config, ResourceFactory resourceFactory, Engine engine)
7879
{
80+
_restliConfig = config;
7981
Map<String, ResourceModel> rootResources = new RestLiApiBuilder(config).build();
8082

8183
// Notify listeners of the resource models.
@@ -152,6 +154,10 @@ public void handleRequestWithRestLiResponse(StreamRequest request, RequestContex
152154
_streamRestLiServer.handleRequestWithRestLiResponse(request, requestContext, callback);
153155
}
154156

157+
public RestLiConfig getRestliConfig() {
158+
return _restliConfig;
159+
}
160+
155161
private boolean isMultipart(final Request request, final RequestContext requestContext, final Callback<?> callback)
156162
{
157163
// In process requests don't support multipart.

0 commit comments

Comments
 (0)