KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > soap > SOAPConnector


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote.soap;
10
11 import java.io.IOException JavaDoc;
12 import java.util.Map JavaDoc;
13
14 import javax.management.MBeanServerConnection JavaDoc;
15 import javax.management.remote.JMXServiceURL JavaDoc;
16 import javax.security.auth.Subject JavaDoc;
17
18 import mx4j.tools.remote.http.HTTPConnection;
19 import mx4j.tools.remote.http.HTTPConnectionMBeanServerConnection;
20 import mx4j.tools.remote.http.HTTPConnector;
21
22 /**
23  * @version $Revision: 1.20 $
24  */

25 public class SOAPConnector extends HTTPConnector
26 {
27    public SOAPConnector(JMXServiceURL JavaDoc url, Map JavaDoc environment) throws IOException JavaDoc
28    {
29       super(url, environment);
30    }
31
32    protected MBeanServerConnection JavaDoc doGetMBeanServerConnection(Subject JavaDoc delegate) throws IOException JavaDoc
33    {
34       HTTPConnection catcher = ClientExceptionCatcher.newInstance(getHTTPConnection());
35       return new HTTPConnectionMBeanServerConnection(catcher, delegate, getRemoteNotificationClientHandler());
36    }
37 }
38
Popular Tags