Registry / utility / geronimo-activation-1-1-spec

geronimo-activation-1-1-spec

JSON →
library1.0.2javamavenunverified

Java Activation Spec API 1.1 provides the javax.activation package for data type registration and MIME handling.

<dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-activation_1.1_spec</artifactId> <version>1.0.2</version> </dependency>
INSTALL
IMPORT
SIG · GERONIMO-ACTIVATIO
G
geronimo-activation-1-1-spec
utilityjavav1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DataHandler
javax.activation.DataHandler

Minimal example using DataHandler to get MIME type of a file.

import javax.activation.DataHandler; import javax.activation.FileDataSource; public class ActivationExample { public static void main(String[] args) { DataHandler handler = new DataHandler(new FileDataSource("example.txt")); System.out.println("MIME type: " + handler.getContentType()); } }
Debug
Known issues
breakingjavax.activation is deprecated in Java 9+ and removed in Java 11; use jakarta.activation instead.
fix
Replace javax.activation with jakarta.activation (e.g., com.sun.activation:jakarta.activation).
affects: >=1.0.0
Upgrade
Version history
1.0.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
geronimo-activation-1-1-spec — mvn dependency:get geronimo-activation-1-1-spec · libregistry