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