File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
src/main/java/org/fiware/iam/configuration Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 11package org .fiware .iam .configuration ;
22
3+ import io .micronaut .context .annotation .ConfigurationInject ;
34import io .micronaut .context .annotation .ConfigurationProperties ;
5+ import io .micronaut .core .annotation .Nullable ;
46import lombok .Getter ;
57
68/**
1315@ Getter
1416public class ForwardedForConfig {
1517
16-
1718 /**
1819 * The name of the header that carries the protocol.
1920 * Default: "X-Forwarded-Proto".
@@ -43,4 +44,19 @@ public class ForwardedForConfig {
4344 * Default: "X-Forwarded-For".
4445 */
4546 private String forHeader ;
47+
48+ @ ConfigurationInject
49+ public ForwardedForConfig (
50+ @ Nullable String protocolHeader ,
51+ @ Nullable String portHeader ,
52+ @ Nullable String hostHeader ,
53+ @ Nullable String prefixHeader ,
54+ @ Nullable String forHeader ) {
55+
56+ this .protocolHeader = protocolHeader ;
57+ this .portHeader = portHeader ;
58+ this .hostHeader = hostHeader ;
59+ this .prefixHeader = prefixHeader ;
60+ this .forHeader = forHeader ;
61+ }
4662}
You can’t perform that action at this time.
0 commit comments