Search in sources :

Example 1 with URLDataSource

use of jakarta.activation.URLDataSource in project spring-framework by spring-projects.

the class StandardClasses method standardClassDataHandler.

public JAXBElement<DataHandler> standardClassDataHandler() {
    DataSource dataSource = new URLDataSource(getClass().getResource("spring-ws.png"));
    DataHandler dataHandler = new DataHandler(dataSource);
    return new JAXBElement<>(NAME, DataHandler.class, dataHandler);
}
Also used : URLDataSource(jakarta.activation.URLDataSource) DataHandler(jakarta.activation.DataHandler) JAXBElement(jakarta.xml.bind.JAXBElement) URLDataSource(jakarta.activation.URLDataSource) DataSource(jakarta.activation.DataSource)

Aggregations

DataHandler (jakarta.activation.DataHandler)1 DataSource (jakarta.activation.DataSource)1 URLDataSource (jakarta.activation.URLDataSource)1 JAXBElement (jakarta.xml.bind.JAXBElement)1