public class SkeletonStrategy extends Object
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.| Constructor and Description |
|---|
SkeletonStrategy(Method m) |
| Modifier and Type | Method and Description |
|---|---|
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,
Throwable 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.
|
public SkeletonStrategy(Method m)
public Object[] readParams(InputStream in)
in - a CDR input streampublic Method getMethod()
SkeletonStrategy's method.public boolean isNonVoid()
SkeletonStrategy's method
is non void.public void writeRetval(OutputStream out, Object retVal)
out - a CDR output streamretVal - the value to be written.public void writeException(OutputStream out, Throwable e)
out - a CDR output streame - the exception to be written.Copyright © 2019 JBoss by Red Hat. All rights reserved.