org.jboss.remoting.transport.http
Class HTTPServerInvoker

java.lang.Object
  extended byorg.jboss.remoting.AbstractInvoker (src) 
      extended byorg.jboss.remoting.ServerInvoker (src) 
          extended byorg.jboss.remoting.transport.http.HTTPServerInvoker
All Implemented Interfaces:
Invoker (src) , java.lang.Runnable, ServerInvokerMBean (src)

public class HTTPServerInvoker
extends ServerInvoker (src)
implements java.lang.Runnable

Server invoker implementation based on http protocol. Is basically a stand alone http server whose request are forwared to the invocation handler and responses from invocation handler are sent back to caller as http response.


Field Summary
protected  int backlog
           
static java.lang.String BINARY
           
static java.lang.String HEADER_SESSION_ID
           
static java.lang.String HEADER_SUBSYSTEM
           
static java.lang.String HTML
           
static java.lang.String PLAIN
           
static java.lang.String SOAP
           
 
Fields inherited from class org.jboss.remoting.ServerInvoker (src)
callbackHandlers, handlers, MAX_NUM_ONEWAY_THREADS
 
Fields inherited from class org.jboss.remoting.AbstractInvoker (src)
classbyteloader, localServerLocator, locator, log
 
Constructor Summary
HTTPServerInvoker(InvokerLocator (src)  locator)
           
HTTPServerInvoker(InvokerLocator (src)  locator, java.util.Map configuration)
           
 
Method Summary
 int getCurrentThreadPoolSize()
           
protected  java.lang.String getDefaultDataType()
           
 java.lang.String getMBeanObjectName()
          Returns the String for the object name to be used for the invoker.
 boolean isTransportBiDirectional()
          returns true if the transport is bi-directional in nature, for example, HTTP in unidirectional and SOCKETs are bi-directional (unless behind a firewall for example).
 void run()
           
 void start()
          subclasses should override to provide any specific start logic
 void stop()
          subclasses should override to provide any specific stop logic
 
Methods inherited from class org.jboss.remoting.ServerInvoker (src)
addInvocationHandler, destroy, getConfiguration, getDataType, getInvocationHandler, getInvocationHandlers, getMBeanServer, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setConfigration, setMBeanServer
 
Methods inherited from class org.jboss.remoting.AbstractInvoker (src)
getClassLoader, getClientLocator, getLocator, setClassLoader, setClientLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backlog

protected int backlog

HTML

public static java.lang.String HTML

PLAIN

public static java.lang.String PLAIN

SOAP

public static java.lang.String SOAP

BINARY

public static java.lang.String BINARY

HEADER_SESSION_ID

public static java.lang.String HEADER_SESSION_ID

HEADER_SUBSYSTEM

public static java.lang.String HEADER_SUBSYSTEM
Constructor Detail

HTTPServerInvoker

public HTTPServerInvoker(InvokerLocator (src)  locator)

HTTPServerInvoker

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

getDefaultDataType

protected java.lang.String getDefaultDataType()
Specified by:
getDefaultDataType in class ServerInvoker (src)

isTransportBiDirectional

public boolean isTransportBiDirectional()
returns true if the transport is bi-directional in nature, for example, HTTP in unidirectional and SOCKETs are bi-directional (unless behind a firewall for example).

Specified by:
isTransportBiDirectional in interface ServerInvokerMBean (src)
Returns:
false (HTTP is unidirrectional)

start

public void start()
           throws java.io.IOException
Description copied from class: ServerInvoker (src)
subclasses should override to provide any specific start logic

Specified by:
start in interface ServerInvokerMBean (src)
Overrides:
start in class ServerInvoker (src)
Throws:
java.io.IOException

getCurrentThreadPoolSize

public int getCurrentThreadPoolSize()

run

public void run()
Specified by:
run in interface java.lang.Runnable

stop

public void stop()
Description copied from class: ServerInvoker (src)
subclasses should override to provide any specific stop logic

Specified by:
stop in interface ServerInvokerMBean (src)
Overrides:
stop in class ServerInvoker (src)

getMBeanObjectName

public java.lang.String getMBeanObjectName()
Description copied from class: ServerInvoker (src)
Returns the String for the object name to be used for the invoker.

Specified by:
getMBeanObjectName in class ServerInvoker (src)
Returns: