This is an automated email from the ASF dual-hosted git repository.

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git

commit c3f675a3a4d5eed578f26bbf8531825827edb7c0
Author: Andreas Veithen <[email protected]>
AuthorDate: Fri Sep 13 17:05:12 2024 +0000

    Remove two unused interfaces
---
 .../axiom/util/stax/xop/ContentIDGenerator.java    | 56 ----------------------
 .../axiom/util/stax/xop/MimePartProvider.java      | 44 -----------------
 2 files changed, 100 deletions(-)

diff --git 
a/axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/ContentIDGenerator.java
 
b/axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/ContentIDGenerator.java
deleted file mode 100644
index a4a333ceb..000000000
--- 
a/axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/ContentIDGenerator.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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.axiom.util.stax.xop;
-
-import org.apache.axiom.util.UIDGenerator;
-
-/**
- * Content ID generator interface. Implementations of this interface are used 
by
- * {@link XOPEncodingStreamReader} to generate content IDs for use in {@code 
xop:Include}
- * elements.
- */
-public interface ContentIDGenerator {
-    /**
-     * Default content ID generator that preserves any existing content ID.
-     */
-    ContentIDGenerator DEFAULT = new ContentIDGenerator() {
-        @Override
-        public String generateContentID(String existingContentID) {
-            if (existingContentID == null) {
-                return UIDGenerator.generateContentId();
-            } else {
-                return existingContentID;
-            }
-        }
-    };
-    
-    /**
-     * Generate a content ID.
-     * 
-     * @param existingContentID
-     *            An existing content ID for the {@link 
javax.activation.DataHandler} being
-     *            processed, as returned by
-     *            {@link 
org.apache.axiom.ext.stax.datahandler.DataHandlerReader#getContentID()},
-     *            or <code>null</code> if no existing content ID is known. The 
implementation is
-     *            free to use this information or not.
-     * @return the content ID; may not be <code>null</code>
-     */
-    String generateContentID(String existingContentID);
-}
diff --git 
a/axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/MimePartProvider.java
 
b/axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/MimePartProvider.java
deleted file mode 100644
index b06255243..000000000
--- 
a/axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/MimePartProvider.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * 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.axiom.util.stax.xop;
-
-import java.io.IOException;
-
-import jakarta.activation.DataHandler;
-
-/**
- * Interface used by {@link XOPDecodingStreamReader} to load MIME parts 
referenced by
- * {@code xop:Include} elements.
- */
-public interface MimePartProvider {
-    /**
-     * Get the {@link DataHandler} for the MIME part identified by a given 
content ID.
-     * 
-     * @param contentID
-     *            a content ID referenced in an {@code xop:Include} element
-     * @return the {@link DataHandler} for the MIME part identified by the 
content ID; may not be
-     *         <code>null</code>
-     * @throws IllegalArgumentException
-     *             if the MIME part was not found
-     * @throws IOException
-     *             if an error occurred while loading the part
-     */
-    DataHandler getDataHandler(String contentID) throws IOException;
-}

Reply via email to