KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > systest > securebasic > WantNotNeedClientAuthServer


1 package org.objectweb.celtix.systest.securebasic;
2
3 import javax.xml.ws.Endpoint;
4
5 import org.objectweb.celtix.systest.common.TestServerBase;
6
7
8
9 public class WantNotNeedClientAuthServer extends TestServerBase {
10     
11     private String JavaDoc url;
12     
13     public WantNotNeedClientAuthServer(String JavaDoc urlParam) {
14         String JavaDoc configFile = getClass().getResource(".") + "WantNotNeedClientAuthServer.xml";
15         System.setProperty("celtix.config.file", configFile);
16         url = urlParam;
17     }
18     
19     protected void run() {
20         Object JavaDoc implementor = new GreeterImpl();
21         String JavaDoc address = url;
22         Endpoint.publish(address, implementor);
23     }
24     
25
26     public static void main(String JavaDoc[] args) {
27         
28         try {
29             WantNotNeedClientAuthServer dontRequireClientAuth =
30                 new WantNotNeedClientAuthServer("https://localhost:9002/SoapContext/SoapPort");
31             dontRequireClientAuth.start();
32         } catch (Exception JavaDoc ex) {
33             ex.printStackTrace();
34             System.exit(-1);
35         } finally {
36             System.out.println("done!");
37         }
38     }
39 }
40
Popular Tags