org.jboss.remoting.transport.http
Class HTTPServerInvoker

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

public class HTTPServerInvoker
extends ServerInvoker
implements 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 String BINARY
           
static String HEADER_SESSION_ID
           
static String HEADER_SUBSYSTEM
           
static String HTML
           
static String PLAIN
           
static String SOAP
           
 
Fields inherited from class org.jboss.remoting.ServerInvoker
callbackHandlers, handlers, MAX_NUM_ONEWAY_THREADS
 
Fields inherited from class org.jboss.remoting.AbstractInvoker
classbyteloader, localServerLocator, locator, log
 
Constructor Summary
HTTPServerInvoker(InvokerLocator locator)
           
HTTPServerInvoker(InvokerLocator locator, Map configuration)
           
 
Method Summary
 int getCurrentThreadPoolSize()
           
protected  String getDefaultDataType()
           
 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
addInvocationHandler, destroy, getConfiguration, getDataType, getInvocationHandler, getInvocationHandlers, getMBeanObjectName, getMBeanServer, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setConfigration, setMBeanServer
 
Methods inherited from class org.jboss.remoting.AbstractInvoker
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 String HTML

PLAIN

public static String PLAIN

SOAP

public static String SOAP

BINARY

public static String BINARY

HEADER_SESSION_ID

public static String HEADER_SESSION_ID

HEADER_SUBSYSTEM

public static String HEADER_SUBSYSTEM
Constructor Detail

HTTPServerInvoker

public HTTPServerInvoker(InvokerLocator locator)

HTTPServerInvoker

public HTTPServerInvoker(InvokerLocator locator,
                         Map configuration)
Method Detail

getDefaultDataType

protected String getDefaultDataType()
Specified by:
getDefaultDataType in class ServerInvoker

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
Returns:
false (HTTP is unidirrectional)

start

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

Specified by:
start in interface ServerInvokerMBean
Overrides:
start in class ServerInvoker
Throws:
IOException

getCurrentThreadPoolSize

public int getCurrentThreadPoolSize()

run

public void run()
Specified by:
run in interface Runnable

stop

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

Specified by:
stop in interface ServerInvokerMBean
Overrides:
stop in class ServerInvoker


Copyright © 2004 JBoss Inc. All Rights Reserved.