public class RAPPCallClass extends RAPPAction
Example code for the calling remote application:
RAPPTransaction trans=new RAPPTransaction(); Element e=trans.createElement("myOwnData"); e.setAttribute("myAttr","myValue"); Element e2=trans.createElement("nestedData"); e2.setAttribute("nestAttr","nestValue"); e.appendChild(e2); RAPPCallClass cc=new RAPPCallClass("com.mycompany.RAPPTest",e); trans.addAction(cc); ... Send the transaction and get the reply... Element reply=cc.getReply(); ... Look up relevant data ...
ACTION_CALL_CLASS, ACTION_CALL_HOST, ACTION_CALL_OBJECT, ACTION_CALL_PANEL, ACTION_GLOB_VAR, ERROR_CALL_CLASS_RUN_ACTION, ERROR_CONTROL_ID_NOT_FOUND, ERROR_GLOB_VAR_NOT_FOUND, ERROR_HOST_FIELD_NOT_FOUND, ERROR_HOST_SESSION_NOT_CONNECTED, ERROR_INSTANCIATING_CALLED_CLASS, ERROR_INTERFACE_NOT_FOUND, ERROR_NOT_CURRENT_HOST_SCREEN, ERROR_OBJECT_NOT_FOUND, ERROR_UNEXPECTED_RETURN_STRING, errorCode, errorDescription
Modifier | Constructor and Description |
---|---|
protected |
RAPPCallClass()
Creates an empty Call Class action used for serializing
data with XML documents.
|
|
RAPPCallClass(String className)
Creates the Call Class action without request data.
|
|
RAPPCallClass(String className,
Element requestData)
Creates the Call Class action with the specified request data.
|
Modifier and Type | Method and Description |
---|---|
String |
getActionClass()
Returns the action class "callClass".
|
int |
getActionType()
Gets the type of action for this class.
|
String |
getClassName()
Gets the class name to call, null if not yet set.
|
String |
getComment()
Comment for action class tag when serialized from a request
the first time.
|
RAPPNameSpaceItem |
getNameSpaceItem()
Gets the namespace item for this action.
|
Element |
getReply()
Gets the Element of data for the reply, null if not yet set.
|
Element |
getRequest()
Gets the Element of data for the request, null if not yet set.
|
String |
paramString()
Gets the parameter string for this class for testing purposes.
|
void |
serializeFromReply(RAPPElement reply)
Initializes the action class instance from a reply element.
|
void |
serializeFromRequest(RAPPElement request)
Initializes the action class instance from a request Element.
|
void |
serializeToReply(RAPPElement reply)
Initializes the reply Element with all attributes.
|
void |
serializeToRequest(RAPPElement request)
Initializes the request Element with all attributes.
|
void |
setReplyData(Element replyData)
Sets the Element of data for the reply.
|
appendReplyElement, appendReplyElement, appendRequestElement, getClass, getErrorCode, getErrorDescription, initialize, removeAllElements, setError, toString, updateReplyFromDocument
protected RAPPCallClass()
public RAPPCallClass(String className)
public RAPPNameSpaceItem getNameSpaceItem()
getNameSpaceItem
in class RAPPAction
public String getClassName()
public Element getRequest()
public Element getReply()
public int getActionType()
getActionType
in class RAPPAction
public String getActionClass()
getActionClass
in class RAPPAction
public void setReplyData(Element replyData)
getReplyData
.public String getComment()
getComment
in class RAPPAction
public void serializeToRequest(RAPPElement request)
The XML for the node looks like (replace parenthesis with less-more-than signs):
(callClassRequest className="com.company.MyClass") [ (requestData) (customTag [attr="optional"]) ### custom data inside Element ### (/customTag) (/requestData) ] (/callClassRequest)
serializeToRequest
in class RAPPAction
public void serializeFromRequest(RAPPElement request) throws SAXException
serializeFromRequest
in class RAPPAction
SAXException
- for errors in the document.public void serializeToReply(RAPPElement reply)
The XML for the node looks like (replace parenthesis with less-more-than signs):
(callClassReply) [ (replyData) (customTag [attr="optional"]) ### custom data inside Element ### (/customTag) (/replyData) ] (/callClassReply)
serializeToReply
in class RAPPAction
public void serializeFromReply(RAPPElement reply) throws SAXException
serializeFromReply
in class RAPPAction
SAXException
- for errors in the document.public String paramString()
paramString
in class RAPPAction
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.