org.jboss.remoting.transport.http
Class HTTPClientInvoker

java.lang.Object
  extended byorg.jboss.remoting.AbstractInvoker
      extended byorg.jboss.remoting.RemoteClientInvoker
          extended byorg.jboss.remoting.transport.http.HTTPClientInvoker
All Implemented Interfaces:
ClientInvoker, Invoker

public class HTTPClientInvoker
extends RemoteClientInvoker

Author:
Tom Elrod

Field Summary
protected  org.jboss.logging.Logger log
           
 
Fields inherited from class org.jboss.remoting.RemoteClientInvoker
connected
 
Fields inherited from class org.jboss.remoting.AbstractInvoker
classbyteloader, localServerLocator, locator
 
Constructor Summary
HTTPClientInvoker(InvokerLocator locator)
           
 
Method Summary
protected  String getDefaultDataType()
          Each implementation of the remote client invoker should have a default data type that is uses in the case it is not specified in the invoker locator uri.
protected  void handleConnect()
          subclasses must implement this method to provide a hook to connect to the remote server, if this applies to the specific transport.
protected  void handleDisconnect()
          subclasses must implement this method to provide a hook to disconnect from the remote server, if this applies to the specific transport.
protected  Object transport(String sessionId, Object invocation, Map metadata, Marshaller marshaller, UnMarshaller unmarshaller)
           
 
Methods inherited from class org.jboss.remoting.RemoteClientInvoker
connect, disconnect, finalize, getMarshaller, getUnMarshaller, invoke, isConnected, postProcess, preProcess, setMarshaller, setUnMarshaller
 
Methods inherited from class org.jboss.remoting.AbstractInvoker
getClassLoader, getClientLocator, getLocator, setClassLoader, setClientLocator
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.transport.ClientInvoker
getClientLocator, setClientLocator
 
Methods inherited from interface org.jboss.remoting.Invoker
getLocator
 

Field Detail

log

protected final org.jboss.logging.Logger log
Constructor Detail

HTTPClientInvoker

public HTTPClientInvoker(InvokerLocator locator)
Method Detail

transport

protected Object transport(String sessionId,
                           Object invocation,
                           Map metadata,
                           Marshaller marshaller,
                           UnMarshaller unmarshaller)
                    throws IOException,
                           ConnectionFailedException
Specified by:
transport in class RemoteClientInvoker
Parameters:
sessionId -
invocation -
marshaller -
Returns:
Throws:
IOException
ConnectionFailedException

handleConnect

protected void handleConnect()
                      throws ConnectionFailedException
subclasses must implement this method to provide a hook to connect to the remote server, if this applies to the specific transport. However, in some transport implementations, this may not make must difference since the connection is not persistent among invocations, such as SOAP. In these cases, the method should silently return without any processing.

Specified by:
handleConnect in class RemoteClientInvoker
Throws:
ConnectionFailedException

handleDisconnect

protected void handleDisconnect()
subclasses must implement this method to provide a hook to disconnect from the remote server, if this applies to the specific transport. However, in some transport implementations, this may not make must difference since the connection is not persistent among invocations, such as SOAP. In these cases, the method should silently return without any processing.

Specified by:
handleDisconnect in class RemoteClientInvoker

getDefaultDataType

protected String getDefaultDataType()
Each implementation of the remote client invoker should have a default data type that is uses in the case it is not specified in the invoker locator uri.

Specified by:
getDefaultDataType in class RemoteClientInvoker
Returns:


Copyright © 2004 JBoss Inc. All Rights Reserved.