org.jboss.remoting.transport.web
Class WebServerInvoker

java.lang.Object
  extended byorg.jboss.remoting.AbstractInvoker
      extended byorg.jboss.remoting.ServerInvoker
          extended byorg.jboss.remoting.transport.web.WebServerInvoker
All Implemented Interfaces:
Invoker, ServerInvokerMBean
Direct Known Subclasses:
HTTPServerInvoker, ServletServerInvoker

public abstract class WebServerInvoker
extends ServerInvoker

Author:
Tom Elrod

Field Summary
static java.lang.String BINARY
           
static java.lang.String HEADER_SESSION_ID
           
static java.lang.String HEADER_SUBSYSTEM
           
 
Fields inherited from class org.jboss.remoting.ServerInvoker
callbackHandlers, CLIENT_CONNECT_ADDRESS_KEY, CLIENT_CONNECT_PORT_KEY, handlers, MAX_NUM_ONEWAY_THREADS, MAX_NUM_ONEWAY_THREADS_KEY, ONEWAY_THREAD_POOL_CLASS_KEY, SERVER_BIND_ADDRESS_KEY, SERVER_BIND_PORT_KEY
 
Fields inherited from class org.jboss.remoting.AbstractInvoker
classbyteloader, localServerLocators, locator, log
 
Constructor Summary
WebServerInvoker(InvokerLocator locator)
           
WebServerInvoker(InvokerLocator locator, java.util.Map configuration)
           
 
Method Summary
protected  InvocationRequest createNewInvocationRequest(java.util.Map metadata, java.lang.Object payload)
           
protected  int getContentLength(java.lang.Object response)
          Will write out the object to byte array and check size of byte array.
protected  InvocationRequest getInvocationRequest(java.util.Map metadata, java.lang.Object obj)
           
protected  java.lang.String getSessionId(java.util.Map metadata)
           
protected  boolean isBinary(java.lang.String requestContentType)
           
 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).
 
Methods inherited from class org.jboss.remoting.ServerInvoker
addInvocationHandler, create, destroy, getClientConnectAddress, getClientConnectPort, getConfiguration, getDataType, getDefaultDataType, getInvocationHandler, getInvocationHandlers, getMaxNumberOfOnewayThreads, getMBeanObjectName, getMBeanServer, getOnewayThreadPool, getServerBindAddress, getServerBindPort, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setClientConnectAddress, setClientConnectPort, setConfiguration, setMaxNumberOfOnewayThreads, setMBeanServer, setOnewayThreadPool, setup, start, stop
 
Methods inherited from class org.jboss.remoting.AbstractInvoker
addClientLocator, getClassLoader, getClientLocator, getLocator, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

WebServerInvoker

public WebServerInvoker(InvokerLocator locator)

WebServerInvoker

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

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).

Returns:
false (HTTP is unidirrectional)

isBinary

protected boolean isBinary(java.lang.String requestContentType)

getInvocationRequest

protected InvocationRequest getInvocationRequest(java.util.Map metadata,
                                                 java.lang.Object obj)

createNewInvocationRequest

protected InvocationRequest createNewInvocationRequest(java.util.Map metadata,
                                                       java.lang.Object payload)

getSessionId

protected java.lang.String getSessionId(java.util.Map metadata)

getContentLength

protected int getContentLength(java.lang.Object response)
                        throws java.io.IOException
Will write out the object to byte array and check size of byte array. This is VERY expensive, but need for the content length.

Parameters:
response -
Returns:
Throws:
java.io.IOException


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