站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 iiop API Documentation 英文版文档

SkeletonStrategy (JBoss IIOP Plugin API) - JBoss 3.2.7 iiop API Documentation 英文版文档


org.jboss.iiop.rmi.marshal.strategy
Class SkeletonStrategy

java.lang.Object
  extended byorg.jboss.iiop.rmi.marshal.strategy.SkeletonStrategy

public class SkeletonStrategy
extends Object

A SkeletonStrategy for a given method knows how to unmarshalthe sequence of method parameters from a CDR input stream, how to marshal into a CDR output stream the return value of the method, and how to marshal into a CDR output stream any exception thrown by the method.

Version:
$Revision: 1.1.2.3 $
Author:
Francisco Reverbel

Constructor Summary
SkeletonStrategy(Method m)
           
 
Method Summary
 Method getMethod()
          Returns this SkeletonStrategy's method.
 boolean isNonVoid()
          Returns true if this SkeletonStrategy's method is non void.
 Object[] readParams(InputStream in)
          Unmarshals the sequence of method parameters from an input stream.
 void writeException(OutputStream out, Exception e)
          Marshals into an output stream an exception thrown by the method.
 void writeRetval(OutputStream out, Object retVal)
          Marshals into an output stream the return value of the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkeletonStrategy

public SkeletonStrategy(Method m)
Method Detail

readParams

public Object[] readParams(InputStream in)
Unmarshals the sequence of method parameters from an input stream.

Parameters:
in - a CDR input stream
Returns:
an object array with the parameters.

getMethod

public Method getMethod()
Returns this SkeletonStrategy's method.


isNonVoid

public boolean isNonVoid()
Returns true if this SkeletonStrategy's method is non void.


writeRetval

public void writeRetval(OutputStream out,
                        Object retVal)
Marshals into an output stream the return value of the method.

Parameters:
out - a CDR output stream
retVal - the value to be written.

writeException

public void writeException(OutputStream out,
                           Exception e)
Marshals into an output stream an exception thrown by the method.

Parameters:
out - a CDR output stream
e - the exception to be written.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.