1 package org.objectweb.celtix.systest.securebasic; 2 3 4 import javax.xml.ws.Endpoint; 5 6 import org.objectweb.celtix.systest.common.TestServerBase; 7 8 9 10 public class WantAndNeedClientAuthServerSetGoodDataProvider extends TestServerBase { 11 12 private String url; 13 14 public WantAndNeedClientAuthServerSetGoodDataProvider(String urlParam) { 15 String configFile = getClass().getResource(".") 16 + "WantAndNeedClientAuthServerSetGoodDataProvider.xml"; 17 System.setProperty("celtix.config.file", configFile); 18 System.setProperty("celtix.security.configurer.celtix.http-listener.9005", 19 "org.objectweb.celtix.systest.securebasic.SetAllDataSecurityDataProvider"); 20 url = urlParam; 21 22 } 23 24 protected void run() { 25 Object implementor = new GreeterImpl(); 26 String configFile = System.getProperty("celtix.config.file"); 27 String provider = System.getProperty("celtix.security.configurer.celtix.http-listener.9005"); 28 System.out.println("configFile = :" + configFile + ":"); 29 System.out.println("provider = :" + provider + ":"); 30 String address = url; 31 Endpoint.publish(address, implementor); 32 System.out.println("done"); 33 } 34 35 36 public static void main(String [] args) { 37 38 try { 39 WantAndNeedClientAuthServerSetGoodDataProvider server = 40 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 } 51 | Popular Tags |