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);
}
Aggregations