01: package org.objectweb.celtix.systest.securebasic;
02:
03: import javax.xml.ws.Endpoint;
04:
05: import org.objectweb.celtix.systest.common.TestServerBase;
06:
07: public class WantAndNeedClientAuthServerSetGoodDataProvider extends
08: TestServerBase {
09:
10: private String url;
11:
12: public WantAndNeedClientAuthServerSetGoodDataProvider(
13: String urlParam) {
14: String configFile = getClass().getResource(".")
15: + "WantAndNeedClientAuthServerSetGoodDataProvider.xml";
16: System.setProperty("celtix.config.file", configFile);
17: System
18: .setProperty(
19: "celtix.security.configurer.celtix.http-listener.9005",
20: "org.objectweb.celtix.systest.securebasic.SetAllDataSecurityDataProvider");
21: url = urlParam;
22:
23: }
24:
25: protected void run() {
26: Object implementor = new GreeterImpl();
27: String configFile = System.getProperty("celtix.config.file");
28: String provider = System
29: .getProperty("celtix.security.configurer.celtix.http-listener.9005");
30: System.out.println("configFile = :" + configFile + ":");
31: System.out.println("provider = :" + provider + ":");
32: String address = url;
33: Endpoint.publish(address, implementor);
34: System.out.println("done");
35: }
36:
37: public static void main(String[] args) {
38:
39: try {
40: WantAndNeedClientAuthServerSetGoodDataProvider server = new WantAndNeedClientAuthServerSetGoodDataProvider(
41: "https://localhost:9005/SoapContext/SoapPort");
42: server.start();
43: } catch (Exception ex) {
44: ex.printStackTrace();
45: System.exit(-1);
46: } finally {
47: System.out.println("done!");
48: }
49: }
50: }
|