01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.tools.remote.soap;
10:
11: import java.io.IOException;
12: import java.util.Map;
13:
14: import javax.management.MBeanServerConnection;
15: import javax.management.remote.JMXServiceURL;
16: import javax.security.auth.Subject;
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: public SOAPConnector(JMXServiceURL url, Map environment)
27: throws IOException {
28: super (url, environment);
29: }
30:
31: protected MBeanServerConnection doGetMBeanServerConnection(
32: Subject delegate) throws IOException {
33: HTTPConnection catcher = ClientExceptionCatcher
34: .newInstance(getHTTPConnection());
35: return new HTTPConnectionMBeanServerConnection(catcher,
36: delegate, getRemoteNotificationClientHandler());
37: }
38: }
|