public class MServerReply extends MOperationReply implements MOperationConstants
MClientReply
m_operationInstance, m_trackingInfo, m_userClosure
m_app, m_classDescription, m_operationClassName, m_operationDescription, m_operationName
OPERATION_CLOSURE_TAG, OPERATION_EXCEPTIONDATA_TAG, OPERATION_EXCEPTIONNAME_TAG, OPERATION_HASEXCEPTION_TAG, OPERATION_REQUEST_TAG, OPERATION_RETURNVALUE_TAG, OPERATION_USERCLOSURE_TAG
Constructor and Description |
---|
MServerReply(MApp app,
java.lang.String operationClassName,
java.lang.String operationName)
Construct an
MServerReply using the specified class description
name and operation name. |
MServerReply(MOperationImpl operationImpl)
Supply an
MOperationImpl from which applications can extract the
class description and operation name. |
Modifier and Type | Method and Description |
---|---|
void |
reply()
Send the reply.
|
void |
setException(java.lang.String exceptionName,
java.lang.Object exceptionData)
Set the exception object.
|
void |
setReturnValue(java.lang.Object returnValue)
Set the return value for this
MServerReply . |
get, getKeys, getReturnValue
get, getClosure, getTrackingInfo, isNullData, set, setClosure, setNullData, setTrackingInfo, validateParameter
getClassDescription, getOperationDescription, retrieveClasssDescription, retrieveOperationDescription
public MServerReply(MApp app, java.lang.String operationClassName, java.lang.String operationName) throws MException
MServerReply
using the specified class description
name and operation name.app
- Application manager for which this MServerReply
is created.operationClassName
- Name of the class in which this MServerReply
is defined in the public repository directory.operationName
- Name of the operation associated with this MServerReply
.MException
public MServerReply(MOperationImpl operationImpl) throws MException
MOperationImpl
from which applications can extract the
class description and operation name. This is the preferred constructor for
instantiating an MServerReply
.
This class is normally instantiated by the SDK. You are only required to instantiate
this class when using reflection method in MOperationImpl instead
of overriding MOperationImpl.onInvoke()
.operationImpl
- The operation implementation instance to be used by
this class to access the operation class description and operation name.MException
public void reply() throws MException, MInvalidInputException
MException
- on any communication error.MInvalidInputException
- on mismatched/missing output parameter.
introspection, the application should not send the reply; the SDK will do it.public void setException(java.lang.String exceptionName, java.lang.Object exceptionData) throws MException
MInvalidInputException
- on attempt to set an exception not in the
exception list for the operation.MException
public void setReturnValue(java.lang.Object returnValue) throws MException
MServerReply
.setReturnValue
in class MOperationReply
MException