public class Message extends Object
| Constructor and Description |
|---|
Message(ThreadId threadId,
boolean request,
String objectId,
com.sun.star.lib.uno.typedesc.TypeDescription type,
com.sun.star.lib.uno.typedesc.MethodDescription method,
boolean synchronous,
com.sun.star.uno.XCurrentContext currentContext,
boolean abnormalTermination,
Object result,
Object[] arguments) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getArguments()
Returns the arguments of a message.
|
com.sun.star.uno.XCurrentContext |
getCurrentContext()
Returns the current context of a request message.
|
com.sun.star.lib.uno.typedesc.MethodDescription |
getMethod()
Returns the method description of a request message.
|
String |
getObjectId()
Returns the object ID of a request message.
|
Object |
getResult()
Returns the result of a reply message.
|
ThreadId |
getThreadId()
Returns the thread ID of the message.
|
com.sun.star.lib.uno.typedesc.TypeDescription |
getType()
Returns the type of a request message.
|
boolean |
isAbnormalTermination()
Returns whether the reply message represents abnormal termination.
|
boolean |
isRequest()
Returns whether the message is a request or a reply.
|
boolean |
isSynchronous()
Returns whether the request message is synchronous.
|
public Message(ThreadId threadId, boolean request, String objectId, com.sun.star.lib.uno.typedesc.TypeDescription type, com.sun.star.lib.uno.typedesc.MethodDescription method, boolean synchronous, com.sun.star.uno.XCurrentContext currentContext, boolean abnormalTermination, Object result, Object[] arguments)
public final ThreadId getThreadId()
Valid for all kinds of messages.
null) thread ID.public final boolean isRequest()
Valid for all kinds of messages.
true for a request, false for a reply.public final String getObjectId()
Valid only for request messages.
null) object ID for a request,
null for a reply.public final com.sun.star.lib.uno.typedesc.TypeDescription getType()
Valid only for request messages.
null) type for a request, null
for a reply.public final com.sun.star.lib.uno.typedesc.MethodDescription getMethod()
Valid only for request messages. The returned
MethodDescription is consistent with the type of the
message.
null) method description for a request,
null for a reply.public final boolean isSynchronous()
Valid only for request messages.
true for a synchronous request, false
for an asynchronous request or a reply.public com.sun.star.uno.XCurrentContext getCurrentContext()
Valid only for request messages.
null) for a
request, null for a reply.public final boolean isAbnormalTermination()
Valid only for reply messages.
true for a reply that represents abnormal
termination, false for a reply that represents normal
termination or a request.public final Object getResult()
Valid only for reply messages.
null) return value for a reply that
represents normal termination, the (non-null) exception for
a reply that represents abnormal termination, null for a
request.public final Object[] getArguments()
Valid only for request messages and reply messages that represent normal termination. Any returned array must not be modified.
null for a parameterless function), the out and in– {
}out
arguments for a reply that represents normal termination (possibly
null for a parameterless function), null for a
reply that represents abnormal termination.