Sfoglia il codice sorgente

Consistently use `PATH_RESTRICTED` (#105630)

Follow up to: https://github.com/elastic/elasticsearch/pull/105336
Nikolaj Volgushev 1 anno fa
parent
commit
d7fbabc756

+ 1 - 11
server/src/main/java/org/elasticsearch/rest/RestRequest.java

@@ -48,11 +48,7 @@ import static org.elasticsearch.core.TimeValue.parseTimeValue;
 
 public class RestRequest implements ToXContent.Params, Traceable {
 
-    @Deprecated()
-    // TODO remove once Serverless is updated
-    public static final String RESPONSE_RESTRICTED = "responseRestricted";
-    // TODO rename to `pathRestricted` once Serverless is updated
-    public static final String PATH_RESTRICTED = "responseRestricted";
+    public static final String PATH_RESTRICTED = "pathRestricted";
     // tchar pattern as defined by RFC7230 section 3.2.6
     private static final Pattern TCHAR_PATTERN = Pattern.compile("[a-zA-Z0-9!#$%&'*+\\-.\\^_`|~]+");
 
@@ -629,12 +625,6 @@ public class RestRequest implements ToXContent.Params, Traceable {
         consumedParams.add(PATH_RESTRICTED);
     }
 
-    @Deprecated()
-    // TODO remove once Serverless is updated
-    public void markResponseRestricted(String restriction) {
-        markPathRestricted(restriction);
-    }
-
     @Override
     public String getSpanId() {
         return "rest-" + getRequestId();