The Spring Framework

org.springframework.remoting.caucho
Class HessianSkeletonInvoker

java.lang.Object
  extended by org.springframework.remoting.caucho.HessianSkeletonInvoker
Direct Known Subclasses:
Hessian1SkeletonInvoker, Hessian2SkeletonInvoker

abstract class HessianSkeletonInvoker
extends Object

Internal invoker strategy for a Hessian skeleton. Allows for common handling of Hessian protocol version 1 and 2.

Since:
2.0
Author:
Juergen Hoeller

Field Summary
protected  com.caucho.hessian.io.SerializerFactory serializerFactory
          Hessian SerializerFactory (if any), available to subclasses.
protected  com.caucho.hessian.server.HessianSkeleton skeleton
          Wrapped HessianSkeleton, available to subclasses.
 
Constructor Summary
HessianSkeletonInvoker(com.caucho.hessian.server.HessianSkeleton skeleton, com.caucho.hessian.io.SerializerFactory serializerFactory)
          Create a new HessianSkeletonInvoker for the given skeleton.
 
Method Summary
abstract  void invoke(InputStream inputStream, OutputStream outputStream)
          Invoke the given skeleton based on the given input/output streams.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

skeleton

protected final com.caucho.hessian.server.HessianSkeleton skeleton
Wrapped HessianSkeleton, available to subclasses.


serializerFactory

protected final com.caucho.hessian.io.SerializerFactory serializerFactory
Hessian SerializerFactory (if any), available to subclasses.

Constructor Detail

HessianSkeletonInvoker

public HessianSkeletonInvoker(com.caucho.hessian.server.HessianSkeleton skeleton,
                              com.caucho.hessian.io.SerializerFactory serializerFactory)
Create a new HessianSkeletonInvoker for the given skeleton.

Parameters:
skeleton - the HessianSkeleton to wrap
serializerFactory - the Hessian SerializerFactory to use, if any
Method Detail

invoke

public abstract void invoke(InputStream inputStream,
                            OutputStream outputStream)
                     throws Throwable
Invoke the given skeleton based on the given input/output streams.

Parameters:
inputStream - the stream containing the Hessian input
outputStream - the stream to receive the Hessian output
Throws:
Throwable - if the skeleton invocation failed

The Spring Framework

Copyright © 2002-2006 The Spring Framework.