org.jboss.remoting.transport.http
Class HTTPServerInvoker
java.lang.Object
org.jboss.remoting.AbstractInvoker
org.jboss.remoting.ServerInvoker
org.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
HTTPServerInvoker
public HTTPServerInvoker(InvokerLocator locator)
HTTPServerInvoker
public HTTPServerInvoker(InvokerLocator locator,
Map configuration)
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.