Debian Codegraph @

jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-mock-resources/src/main/java/org/example/MockTransport.java

raw
1 //
2 // ========================================================================
3 // Copyright (c) 1995 Mort Bay Consulting Pty Ltd and others.
4 //
5 // This program and the accompanying materials are made available under the
6 // terms of the Eclipse Public License v. 2.0 which is available at
7 // https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
8 // which is available at https://www.apache.org/licenses/LICENSE-2.0.
9 //
10 // SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
11 // ========================================================================
12 //
13
14 package org.example;
15
16 import jakarta.mail.Address;
17 import jakarta.mail.Message;
18 import jakarta.mail.MessagingException;
19 import jakarta.mail.Session;
20 import jakarta.mail.Transport;
21 import jakarta.mail.URLName;
22
23 /**
24 * MockTransport
25 */
26 public class MockTransport extends Transport
27 {
28 /**
29 *
30 */
31 public MockTransport(Session session, URLName urlname)
32 {
33 super(session, urlname);
34 }
35
36 @Override
37 public void sendMessage(Message arg0, Address[] arg1) throws MessagingException
38 {
39 System.err.println("Sending message");
40 }
41 }