|
1 | 1 | /* |
2 | | - * Copyright 2002-2024 the original author or authors. |
| 2 | + * Copyright 2002-2025 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -802,42 +802,42 @@ private StrictFirewallBuilder(Builder delegate) { |
802 | 802 |
|
803 | 803 | @Override |
804 | 804 | public Builder method(HttpMethod httpMethod) { |
805 | | - return this.delegate.method(httpMethod); |
| 805 | + return new StrictFirewallBuilder(this.delegate.method(httpMethod)); |
806 | 806 | } |
807 | 807 |
|
808 | 808 | @Override |
809 | 809 | public Builder uri(URI uri) { |
810 | | - return this.delegate.uri(uri); |
| 810 | + return new StrictFirewallBuilder(this.delegate.uri(uri)); |
811 | 811 | } |
812 | 812 |
|
813 | 813 | @Override |
814 | 814 | public Builder path(String path) { |
815 | | - return this.delegate.path(path); |
| 815 | + return new StrictFirewallBuilder(this.delegate.path(path)); |
816 | 816 | } |
817 | 817 |
|
818 | 818 | @Override |
819 | 819 | public Builder contextPath(String contextPath) { |
820 | | - return this.delegate.contextPath(contextPath); |
| 820 | + return new StrictFirewallBuilder(this.delegate.contextPath(contextPath)); |
821 | 821 | } |
822 | 822 |
|
823 | 823 | @Override |
824 | 824 | public Builder header(String headerName, String... headerValues) { |
825 | | - return this.delegate.header(headerName, headerValues); |
| 825 | + return new StrictFirewallBuilder(this.delegate.header(headerName, headerValues)); |
826 | 826 | } |
827 | 827 |
|
828 | 828 | @Override |
829 | 829 | public Builder headers(Consumer<HttpHeaders> headersConsumer) { |
830 | | - return this.delegate.headers(headersConsumer); |
| 830 | + return new StrictFirewallBuilder(this.delegate.headers(headersConsumer)); |
831 | 831 | } |
832 | 832 |
|
833 | 833 | @Override |
834 | 834 | public Builder sslInfo(SslInfo sslInfo) { |
835 | | - return this.delegate.sslInfo(sslInfo); |
| 835 | + return new StrictFirewallBuilder(this.delegate.sslInfo(sslInfo)); |
836 | 836 | } |
837 | 837 |
|
838 | 838 | @Override |
839 | 839 | public Builder remoteAddress(InetSocketAddress remoteAddress) { |
840 | | - return this.delegate.remoteAddress(remoteAddress); |
| 840 | + return new StrictFirewallBuilder(this.delegate.remoteAddress(remoteAddress)); |
841 | 841 | } |
842 | 842 |
|
843 | 843 | @Override |
|
0 commit comments