You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2024/09/19 16:10:21 UTC
(sling-samples) 11/15: chore: adapt servlet to latest upstream changes
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-samples.git
commit 46ddf668477f757fe71407d45850a645d5e83997
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Sep 10 19:00:02 2024 +0200
chore: adapt servlet to latest upstream changes
---
.../oauth_demo/impl/YoutubeSearchServlet.java | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/oauth/core/src/main/java/org/apache/sling/samples/oauth_demo/impl/YoutubeSearchServlet.java b/oauth/core/src/main/java/org/apache/sling/samples/oauth_demo/impl/YoutubeSearchServlet.java
index beac6e4..da3ff43 100644
--- a/oauth/core/src/main/java/org/apache/sling/samples/oauth_demo/impl/YoutubeSearchServlet.java
+++ b/oauth/core/src/main/java/org/apache/sling/samples/oauth_demo/impl/YoutubeSearchServlet.java
@@ -42,15 +42,10 @@ import org.osgi.service.component.annotations.Reference;
public class YoutubeSearchServlet extends OAuthEnabledSlingServlet {
private static final long serialVersionUID = 1L;
- private final OidcConnection connection;
- private OidcTokenStore tokenStore;
- private OidcClient oidcClient;
@Activate
public YoutubeSearchServlet(@Reference OidcConnection connection, @Reference OidcTokenStore tokenStore, @Reference OidcClient oidcClient) {
- this.connection = connection;
- this.tokenStore = tokenStore;
- this.oidcClient = oidcClient;
+ super(connection, tokenStore, oidcClient);
}
@Override
@@ -58,21 +53,6 @@ public class YoutubeSearchServlet extends OAuthEnabledSlingServlet {
return request.getRequestURI();
}
- @Override
- protected @NotNull OidcConnection getConnection() {
- return connection;
- }
-
- @Override
- protected @NotNull OidcClient getOidcClient() {
- return oidcClient;
- }
-
- @Override
- protected @NotNull OidcTokenStore getTokenStore() {
- return tokenStore;
- }
-
@Override
protected void doGetWithToken(@NotNull SlingHttpServletRequest request, @NotNull SlingHttpServletResponse response,
OidcToken token) throws IOException, ServletException {