mx4j.tools.remote.http
Class HTTPResolver

java.lang.Object
  extended bymx4j.remote.ProviderHelper
      extended bymx4j.remote.ConnectionResolver
          extended bymx4j.tools.remote.http.HTTPResolver
Direct Known Subclasses:
Resolver, Resolver, Resolver

public abstract class HTTPResolver
extends ConnectionResolver

Version:
$Revision: 1.4 $

Field Summary
protected static java.lang.String DEFAULT_WEB_CONTAINER_CLASS
           
 
Constructor Summary
HTTPResolver()
           
 
Method Summary
 java.lang.Object bindClient(java.lang.Object client, java.util.Map environment)
          Connects the client returned by ConnectionResolver.lookupClient(javax.management.remote.JMXServiceURL, java.util.Map) to the server side.
 javax.management.remote.JMXServiceURL bindServer(java.lang.Object server, javax.management.remote.JMXServiceURL url, java.util.Map environment)
          Binds the server created by createServer(javax.management.remote.JMXServiceURL, java.util.Map) to a place specified by the JMXServiceURL.
 java.lang.Object createServer(javax.management.remote.JMXServiceURL url, java.util.Map environment)
          Creates an instance of the server as specified in the given JMXServiceURL.
protected  WebContainer createWebContainer(javax.management.remote.JMXServiceURL url, java.lang.String webContainerClassName, java.util.Map environment)
           
protected  void deploy(javax.management.remote.JMXServiceURL address, java.util.Map environment)
           
 void destroyServer(java.lang.Object server, javax.management.remote.JMXServiceURL url, java.util.Map environment)
          Destroys the server created by createServer(javax.management.remote.JMXServiceURL, java.util.Map), by cleaning up resources it may have requested at creation time
protected  java.lang.String getEndpoint(javax.management.remote.JMXServiceURL address, java.util.Map environment)
           
protected  java.lang.String getEndpointProtocol(java.util.Map environment)
           
protected abstract  java.lang.String getServletClassName()
           
 void unbindServer(java.lang.Object server, javax.management.remote.JMXServiceURL address, java.util.Map environment)
          Unbinds the server bound by bindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map) from the place specified by the JMXServiceURL.
protected  void undeploy(javax.management.remote.JMXServiceURL address, java.util.Map environment)
           
 
Methods inherited from class mx4j.remote.ConnectionResolver
lookupClient, newConnectionResolver
 
Methods inherited from class mx4j.remote.ProviderHelper
constructClassName, findSystemPackageList, getLogger, loadClass, normalizeProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WEB_CONTAINER_CLASS

protected static final java.lang.String DEFAULT_WEB_CONTAINER_CLASS
See Also:
Constant Field Values
Constructor Detail

HTTPResolver

public HTTPResolver()
Method Detail

bindClient

public java.lang.Object bindClient(java.lang.Object client,
                                   java.util.Map environment)
                            throws java.io.IOException
Description copied from class: ConnectionResolver
Connects the client returned by ConnectionResolver.lookupClient(javax.management.remote.JMXServiceURL, java.util.Map) to the server side.

Specified by:
bindClient in class ConnectionResolver
Returns:
An object of the same type as the client passed in; normally the client object itself
Throws:
java.io.IOException

getEndpoint

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

getEndpointProtocol

protected java.lang.String getEndpointProtocol(java.util.Map environment)

createServer

public java.lang.Object createServer(javax.management.remote.JMXServiceURL url,
                                     java.util.Map environment)
                              throws java.io.IOException
Description copied from class: ConnectionResolver
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 JMXConnectorServerMBean.start().

Specified by:
createServer in class ConnectionResolver
Throws:
java.io.IOException
See Also:
ConnectionResolver.bindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map), ConnectionResolver.destroyServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map)

bindServer

public javax.management.remote.JMXServiceURL bindServer(java.lang.Object server,
                                                        javax.management.remote.JMXServiceURL url,
                                                        java.util.Map environment)
                                                 throws java.io.IOException
Description copied from class: ConnectionResolver
Binds the server created by ConnectionResolver.createServer(javax.management.remote.JMXServiceURL, java.util.Map) to a place specified by the JMXServiceURL.

Specified by:
bindServer in class ConnectionResolver
Returns:
a new JMXServiceURL that specifies where the server has been bound to.
Throws:
java.io.IOException
See Also:
ConnectionResolver.unbindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map)

getServletClassName

protected abstract java.lang.String getServletClassName()

deploy

protected void deploy(javax.management.remote.JMXServiceURL address,
                      java.util.Map environment)
               throws java.io.IOException
Throws:
java.io.IOException

unbindServer

public void unbindServer(java.lang.Object server,
                         javax.management.remote.JMXServiceURL address,
                         java.util.Map environment)
                  throws java.io.IOException
Description copied from class: ConnectionResolver
Unbinds the server bound by ConnectionResolver.bindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map) from the place specified by the JMXServiceURL.

Specified by:
unbindServer in class ConnectionResolver
Throws:
java.io.IOException
See Also:
ConnectionResolver.destroyServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map)

undeploy

protected void undeploy(javax.management.remote.JMXServiceURL address,
                        java.util.Map environment)
                 throws java.io.IOException
Throws:
java.io.IOException

destroyServer

public void destroyServer(java.lang.Object server,
                          javax.management.remote.JMXServiceURL url,
                          java.util.Map environment)
                   throws java.io.IOException
Description copied from class: ConnectionResolver
Destroys the server created by ConnectionResolver.createServer(javax.management.remote.JMXServiceURL, java.util.Map), by cleaning up resources it may have requested at creation time

Specified by:
destroyServer in class ConnectionResolver
Throws:
java.io.IOException
See Also:
ConnectionResolver.createServer(javax.management.remote.JMXServiceURL, java.util.Map)

createWebContainer

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


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