You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2024/12/19 13:47:36 UTC
(sling-org-apache-sling-servlet-helpers) 01/01: Bump org.apache.sling.api from 2.4.0 to 2.25.4
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch feature/sling-api-update
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlet-helpers.git
commit a540e66b5663d1716528c9e89a37fe2401be522f
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Thu Dec 19 14:42:04 2024 +0100
Bump org.apache.sling.api from 2.4.0 to 2.25.4
---
pom.xml | 2 +-
.../internalrequests/ServletResolutionResource.java | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 75f2cc8..acf6009 100644
--- a/pom.xml
+++ b/pom.xml
@@ -68,7 +68,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
- <version>2.4.0</version>
+ <version>2.25.4</version>
<scope>provided</scope>
</dependency>
<dependency>
diff --git a/src/main/java/org/apache/sling/servlethelpers/internalrequests/ServletResolutionResource.java b/src/main/java/org/apache/sling/servlethelpers/internalrequests/ServletResolutionResource.java
index 34325b8..55298a0 100644
--- a/src/main/java/org/apache/sling/servlethelpers/internalrequests/ServletResolutionResource.java
+++ b/src/main/java/org/apache/sling/servlethelpers/internalrequests/ServletResolutionResource.java
@@ -23,6 +23,8 @@ import java.util.Iterator;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceMetadata;
import org.apache.sling.api.resource.ResourceResolver;
+import org.apache.sling.api.resource.ValueMap;
+import org.jetbrains.annotations.NotNull;
/** Minimal Resource implementation for our internal requests, meant
* to be used only to resolve scripts and servlets.
@@ -109,4 +111,14 @@ class ServletResolutionResource implements Resource {
public ResourceResolver getResourceResolver() {
return resourceResolver;
}
+
+ @Override
+ public boolean hasChildren() {
+ throw new NotImplementedException();
+ }
+
+ @Override
+ public @NotNull ValueMap getValueMap() {
+ throw new NotImplementedException();
+ }
}