Class SkeletonStrategy
- java.lang.Object
-
- org.wildfly.iiop.openjdk.rmi.marshal.strategy.SkeletonStrategy
-
public class SkeletonStrategy extends Object
ASkeletonStrategyfor 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: 81018 $
- Author:
- Francisco Reverbel
-
-
Constructor Summary
Constructors Constructor Description SkeletonStrategy(Method m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodgetMethod()Returns thisSkeletonStrategy's method.booleanisNonVoid()Returns true if thisSkeletonStrategy's method is non void.Object[]readParams(org.omg.CORBA_2_3.portable.InputStream in)Unmarshals the sequence of method parameters from an input stream.voidwriteException(org.omg.CORBA_2_3.portable.OutputStream out, Throwable e)Marshals into an output stream an exception thrown by the method.voidwriteRetval(org.omg.CORBA_2_3.portable.OutputStream out, Object retVal)Marshals into an output stream the return value of the method.
-
-
-
Constructor Detail
-
SkeletonStrategy
public SkeletonStrategy(Method m)
-
-
Method Detail
-
readParams
public Object[] readParams(org.omg.CORBA_2_3.portable.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 thisSkeletonStrategy's method.
-
isNonVoid
public boolean isNonVoid()
Returns true if thisSkeletonStrategy's method is non void.
-
writeRetval
public void writeRetval(org.omg.CORBA_2_3.portable.OutputStream out, Object retVal)Marshals into an output stream the return value of the method.- Parameters:
out- a CDR output streamretVal- the value to be written.
-
writeException
public void writeException(org.omg.CORBA_2_3.portable.OutputStream out, Throwable e)Marshals into an output stream an exception thrown by the method.- Parameters:
out- a CDR output streame- the exception to be written.
-
-