KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > resolver > burlap > Resolver


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.resolver.burlap;
10
11 import java.io.IOException JavaDoc;
12 import java.util.Map JavaDoc;
13
14 import javax.management.remote.JMXServiceURL JavaDoc;
15
16 import mx4j.tools.remote.caucho.burlap.BurlapClientInvoker;
17 import mx4j.tools.remote.caucho.burlap.BurlapServlet;
18 import mx4j.tools.remote.http.HTTPResolver;
19
20 /**
21  * @version $Revision: 1.1 $
22  */

23 public class Resolver extends HTTPResolver
24 {
25    public Object JavaDoc lookupClient(JMXServiceURL JavaDoc url, Map JavaDoc environment) throws IOException JavaDoc
26    {
27       String JavaDoc endpoint = getEndpoint(url, environment);
28       return new BurlapClientInvoker(endpoint);
29    }
30
31    protected String JavaDoc getServletClassName()
32    {
33       return BurlapServlet.class.getName();
34    }
35 }
36
Popular Tags