mx4j.tools.remote.http

Class HTTPResolver

Known Direct Subclasses:
Resolver, Resolver, Resolver

public abstract class HTTPResolver
extends ConnectionResolver

Version:
$Revision: 1.4 $

Field Summary

protected static String
DEFAULT_WEB_CONTAINER_CLASS

Method Summary

Object
bindClient(Object client, Map environment)
Connects the client returned by ConnectionResolver.lookupClient(JMXServiceURL,Map) to the server side.
javax.management.remote.JMXServiceURL
bindServer(Object server, javax.management.remote.JMXServiceURL url, Map environment)
Binds the server created by ConnectionResolver.createServer(JMXServiceURL,Map) to a place specified by the JMXServiceURL.
Object
createServer(javax.management.remote.JMXServiceURL url, Map environment)
Creates an instance of the server as specified in the given JMXServiceURL.
protected WebContainer
createWebContainer(javax.management.remote.JMXServiceURL url, String webContainerClassName, Map environment)
protected void
deploy(javax.management.remote.JMXServiceURL address, Map environment)
void
destroyServer(Object server, javax.management.remote.JMXServiceURL url, Map environment)
Destroys the server created by ConnectionResolver.createServer(JMXServiceURL,Map), by cleaning up resources it may have requested at creation time
protected String
getEndpoint(javax.management.remote.JMXServiceURL address, Map environment)
protected String
getEndpointProtocol(Map environment)
protected abstract String
getServletClassName()
void
unbindServer(Object server, javax.management.remote.JMXServiceURL address, Map environment)
Unbinds the server bound by ConnectionResolver.bindServer(Object,JMXServiceURL,Map) from the place specified by the JMXServiceURL.
protected void
undeploy(javax.management.remote.JMXServiceURL address, Map environment)

Methods inherited from class mx4j.remote.ConnectionResolver

bindClient, bindServer, createServer, destroyServer, lookupClient, newConnectionResolver, unbindServer

Methods inherited from class mx4j.remote.ProviderHelper

constructClassName, findSystemPackageList, getLogger, loadClass, normalizeProtocol

Field Details

DEFAULT_WEB_CONTAINER_CLASS

protected static final String DEFAULT_WEB_CONTAINER_CLASS

Method Details

bindClient

public Object bindClient(Object client,
                         Map environment)
            throws IOException
Overrides:
bindClient in interface ConnectionResolver
Returns:
An object of the same type as the client passed in; normally the client object itself

bindServer

public javax.management.remote.JMXServiceURL bindServer(Object server,
                                                        javax.management.remote.JMXServiceURL url,
                                                        Map environment)
            throws IOException
Overrides:
bindServer in interface ConnectionResolver
Returns:
a new JMXServiceURL that specifies where the server has been bound to.

createServer

public Object createServer(javax.management.remote.JMXServiceURL url,
                           Map environment)
            throws IOException
Creates an instance of the server as specified in the given JMXServiceURL. It is only a factory method, it should just return a fresh instance of the server; other methods are responsible to make it available to clients (for example exporting it). This method is used in implementations of javax.management.remote.JMXConnectorServer.start.
Overrides:
createServer in interface ConnectionResolver

createWebContainer

protected WebContainer createWebContainer(javax.management.remote.JMXServiceURL url,
                                          String webContainerClassName,
                                          Map environment)

deploy

protected void deploy(javax.management.remote.JMXServiceURL address,
                      Map environment)
            throws IOException

destroyServer

public void destroyServer(Object server,
                          javax.management.remote.JMXServiceURL url,
                          Map environment)
            throws IOException
Destroys the server created by ConnectionResolver.createServer(JMXServiceURL,Map), by cleaning up resources it may have requested at creation time
Overrides:
destroyServer in interface ConnectionResolver

getEndpoint

protected String getEndpoint(javax.management.remote.JMXServiceURL address,
                             Map environment)

getEndpointProtocol

protected String getEndpointProtocol(Map environment)

getServletClassName

protected abstract String getServletClassName()

unbindServer

public void unbindServer(Object server,
                         javax.management.remote.JMXServiceURL address,
                         Map environment)
            throws IOException
Overrides:
unbindServer in interface ConnectionResolver

undeploy

protected void undeploy(javax.management.remote.JMXServiceURL address,
                        Map environment)
            throws IOException

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.