(struts) branch WW-5251-retrofit-compat created (now cda2a2b23)

2024-03-27 Thread kusal
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a change to branch WW-5251-retrofit-compat
in repository https://gitbox.apache.org/repos/asf/struts.git


  at cda2a2b23 WW-5251 Reinstate deleted interfaces with transparent compat

This branch includes the following new commits:

 new cda2a2b23 WW-5251 Reinstate deleted interfaces with transparent compat

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




(struts) 01/01: WW-5251 Reinstate deleted interfaces with transparent compat

2024-03-27 Thread kusal
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5251-retrofit-compat
in repository https://gitbox.apache.org/repos/asf/struts.git

commit cda2a2b2310c72913f626cb3ecd14014cb4e378b
Author: Kusal Kithul-Godage 
AuthorDate: Wed Mar 27 18:41:24 2024 +1100

WW-5251 Reinstate deleted interfaces with transparent compat
---
 .../struts2/interceptor/ApplicationAware.java  | 32 
 .../struts2/interceptor/HttpParametersAware.java   | 32 
 .../apache/struts2/interceptor/ParameterAware.java | 34 ++
 .../apache/struts2/interceptor/PrincipalAware.java | 30 +++
 .../struts2/interceptor/ServletRequestAware.java   | 32 
 .../struts2/interceptor/ServletResponseAware.java  | 32 
 .../apache/struts2/interceptor/SessionAware.java   | 32 
 .../apache/struts2/util/ServletContextAware.java   | 32 
 .../portlet/interceptor/PortletContextAware.java   | 32 
 .../interceptor/PortletPreferencesAware.java   | 32 
 .../portlet/interceptor/PortletRequestAware.java   | 32 
 .../portlet/interceptor/PortletResponseAware.java  | 32 
 12 files changed, 384 insertions(+)

diff --git 
a/core/src/main/java/org/apache/struts2/interceptor/ApplicationAware.java 
b/core/src/main/java/org/apache/struts2/interceptor/ApplicationAware.java
new file mode 100644
index 0..166f484c9
--- /dev/null
+++ b/core/src/main/java/org/apache/struts2/interceptor/ApplicationAware.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts2.interceptor;
+
+import java.util.Map;
+
+@Deprecated
+public interface ApplicationAware extends 
org.apache.struts2.action.ApplicationAware {
+
+void setApplication(Map application);
+
+@Override
+default void withApplication(Map application) {
+setApplication(application);
+}
+}
diff --git 
a/core/src/main/java/org/apache/struts2/interceptor/HttpParametersAware.java 
b/core/src/main/java/org/apache/struts2/interceptor/HttpParametersAware.java
new file mode 100644
index 0..1c4b758f7
--- /dev/null
+++ b/core/src/main/java/org/apache/struts2/interceptor/HttpParametersAware.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts2.interceptor;
+
+import org.apache.struts2.dispatcher.HttpParameters;
+
+@Deprecated
+public interface HttpParametersAware extends 
org.apache.struts2.action.ParametersAware {
+
+void setParameters(HttpParameters parameters);
+
+@Override
+default void withParameters(HttpParameters parameters) {
+setParameters(parameters);
+}
+}
diff --git 
a/core/src/main/java/org/apache/struts2/interceptor/ParameterAware.java 
b/core/src/main/java/org/apache/struts2/interceptor/ParameterAware.java
new file mode 100644
index 0..13656436b
--- /dev/null
+++ b/core/src/main/java/org/apache/struts2/interceptor/ParameterAware.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); yo