public interface IOperation
resultCode
indicating
the success of it's execution. The IOperation
returns an
byte
-Array, which can be transformed into a String
.
Clients can register any number of IOperationDelegate
s to get a
notification after the execution. Each IOperationDelegate
will only
be added once even if addOperationDelegate(IOperationDelegate)
is
called multiple times with the same argument.
Modifier and Type | Method and Description |
---|---|
void |
addOperationDelegate(IOperationDelegate delegate)
Adds the delivered
IOperationDelegate . |
void |
execute()
Executes this operation.
|
byte[] |
getRawResult()
Deprecated.
use the
getResponse() object instead |
com.softwareag.mobile.runtime.comms.Response |
getResponse() |
java.lang.String |
getResult()
Deprecated.
use the
getResponse() object instead |
java.lang.String |
getResult(java.lang.String encoding)
Deprecated.
use the
getResponse() object instead |
int |
getResultCode()
Deprecated.
use the
getResponse() object instead |
void |
removeOperationDelegate(IOperationDelegate delegate)
Removes the delivered
IOperationDelegate . |
int getResultCode()
getResponse()
object insteadresultCode
as an int
-value.void execute()
java.lang.String getResult()
getResponse()
object insteadresult
as a String
. byte
-result from getRawResult()
into
a String
by using UTF-8 as encoding. Call
getResult(String)
under the hood.getResult(String)
java.lang.String getResult(java.lang.String encoding) throws java.io.UnsupportedEncodingException
getResponse()
object insteadresult
as a String
with s specific
encoding.java.io.UnsupportedEncodingException
byte[] getRawResult()
getResponse()
object insteadresult
as an byte
-array.void addOperationDelegate(IOperationDelegate delegate)
IOperationDelegate
. If the same
IOperationDelegate
is already added, it will not be added again.void removeOperationDelegate(IOperationDelegate delegate)
IOperationDelegate
.com.softwareag.mobile.runtime.comms.Response getResponse()
Response
object for this operation