org.jboss.remoting
Class AbstractInvoker

java.lang.Object
  extended byorg.jboss.remoting.AbstractInvoker
All Implemented Interfaces:
Invoker
Direct Known Subclasses:
LocalClientInvoker, MicroRemoteClientInvoker, ServerInvoker

public abstract class AbstractInvoker
extends java.lang.Object
implements Invoker

AbstractInvoker is an abstract handler part that contains common methods between both client and server.

Version:
$Revision: 1.12 $
Author:
Jeff Haynie, Tom Elrod

Field Summary
protected  ClassByteClassLoader classbyteloader
           
protected  java.util.Map configuration
           
protected  java.util.Map localServerLocators
           
protected  InvokerLocator locator
           
protected  org.jboss.logging.Logger log
           
protected  java.lang.String serializationType
           
protected  javax.net.SocketFactory socketFactory
           
protected  boolean socketFactoryCreatedFromSSLParameters
           
 
Constructor Summary
AbstractInvoker(InvokerLocator locator)
           
AbstractInvoker(InvokerLocator locator, java.util.Map configuration)
           
 
Method Summary
 void addClientLocator(java.lang.String listenerId, InvokerLocator locator)
          Sets the callback server locator for the specified callback listener id
protected  javax.net.SocketFactory createSocketFactory(java.util.Map configuration)
          If any configuration parameters relate to the construction of a SSLSocketBuilder, create one.
 java.lang.ClassLoader getClassLoader()
           
 InvokerLocator getClientLocator(java.lang.String listenerId)
          Gets the client locator.
 InvokerLocator getLocator()
          return the locator this Invoker represents
 java.lang.String getSerializationType()
           
 javax.net.SocketFactory getSocketFactory()
           
 boolean isSocketFactoryCreatedFromSSLParameters()
           
static boolean needsCustomSSLConfiguration(java.util.Map configuration)
           
 void setClassLoader(java.lang.ClassLoader classloader)
          set the classloader to use internally
 void setSerializationType(java.lang.String serializationType)
           
 void setSocketFactory(javax.net.SocketFactory socketFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.jboss.logging.Logger log

classbyteloader

protected ClassByteClassLoader classbyteloader

locator

protected InvokerLocator locator

localServerLocators

protected java.util.Map localServerLocators

serializationType

protected java.lang.String serializationType

configuration

protected java.util.Map configuration

socketFactory

protected javax.net.SocketFactory socketFactory

socketFactoryCreatedFromSSLParameters

protected boolean socketFactoryCreatedFromSSLParameters
Constructor Detail

AbstractInvoker

public AbstractInvoker(InvokerLocator locator)

AbstractInvoker

public AbstractInvoker(InvokerLocator locator,
                       java.util.Map configuration)
Method Detail

getLocator

public InvokerLocator getLocator()
return the locator this Invoker represents

Specified by:
getLocator in interface Invoker
Returns:

addClientLocator

public void addClientLocator(java.lang.String listenerId,
                             InvokerLocator locator)
Sets the callback server locator for the specified callback listener id

Parameters:
locator -

getClientLocator

public InvokerLocator getClientLocator(java.lang.String listenerId)
Gets the client locator. This locator will be used by the server side to make callbacks to the handler for this locator.

Returns:

setClassLoader

public void setClassLoader(java.lang.ClassLoader classloader)
set the classloader to use internally

Parameters:
classloader -

getClassLoader

public java.lang.ClassLoader getClassLoader()

getSerializationType

public java.lang.String getSerializationType()

setSerializationType

public void setSerializationType(java.lang.String serializationType)

getSocketFactory

public javax.net.SocketFactory getSocketFactory()

setSocketFactory

public void setSocketFactory(javax.net.SocketFactory socketFactory)

isSocketFactoryCreatedFromSSLParameters

public boolean isSocketFactoryCreatedFromSSLParameters()

createSocketFactory

protected javax.net.SocketFactory createSocketFactory(java.util.Map configuration)
If any configuration parameters relate to the construction of a SSLSocketBuilder, create one.

Parameters:
configuration -
Returns:

needsCustomSSLConfiguration

public static boolean needsCustomSSLConfiguration(java.util.Map configuration)


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.