commit | author | age
|
e58690
|
1 |
/* |
U |
2 |
neon - Embeddable HTTP Server based on jdk.httpserver |
|
3 |
Copyright (C) 2024 Ulrich Hilger |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as |
|
7 |
published by the Free Software Foundation, either version 3 of the |
|
8 |
License, or (at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <https://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
|
|
19 |
|
|
20 |
package de.uhilger.neon; |
|
21 |
|
|
22 |
import com.sun.net.httpserver.Authenticator; |
|
23 |
import com.sun.net.httpserver.HttpContext; |
|
24 |
import com.sun.net.httpserver.HttpHandler; |
|
25 |
import com.sun.net.httpserver.HttpServer; |
|
26 |
|
|
27 |
/** |
|
28 |
* Objekte, die auf Ereignisse der Neon-Factory lauschen |
|
29 |
* wollen, muessen diese Schnittstelle implementieren. |
|
30 |
* |
|
31 |
* @author Ulrich Hilger |
|
32 |
*/ |
|
33 |
public interface FactoryListener { |
|
34 |
|
|
35 |
public void serverCreated(HttpServer server); |
|
36 |
|
|
37 |
public void contextCreated(HttpContext context); |
|
38 |
|
|
39 |
public void handlerCreated(HttpContext context, HttpHandler handler); |
|
40 |
|
|
41 |
public void authenticatorCreated(HttpContext context, Authenticator authenticator); |
|
42 |
|
|
43 |
//public void elementCreated(Object realm); |
|
44 |
|
|
45 |
public void instanceStarted(); |
|
46 |
|
|
47 |
} |