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.resolver.hessian;
10:
11: import java.io.IOException;
12: import java.util.Map;
13:
14: import javax.management.remote.JMXServiceURL;
15:
16: import mx4j.tools.remote.caucho.hessian.HessianClientInvoker;
17: import mx4j.tools.remote.caucho.hessian.HessianServlet;
18: import mx4j.tools.remote.http.HTTPResolver;
19:
20: /**
21: * @version $Revision: 1.1 $
22: */
23: public class Resolver extends HTTPResolver {
24: public Object lookupClient(JMXServiceURL url, Map environment)
25: throws IOException {
26: String endpoint = getEndpoint(url, environment);
27: return new HessianClientInvoker(endpoint);
28: }
29:
30: protected String getServletClassName() {
31: return HessianServlet.class.getName();
32: }
33: }
|