|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
ch.ethz.iks.r_osgi.messages.MethodResultMessage
public final class MethodResultMessage
MethodResultMessage is used to return the result of a method invocation to the invoking remote peer.
| Field Summary |
|---|
| Fields inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage |
|---|
DELIVER_BUNDLE, DELIVER_SERVICE, FETCH_SERVICE, INVOKE_METHOD, LEASE, LEASE_UPDATE, METHOD_RESULT, REMOTE_EVENT, STREAM_REQUEST, STREAM_RESULT, TIME_OFFSET, xid |
| Constructor Summary | |
|---|---|
MethodResultMessage()
creates a new MethodResultMessage from InvokeMethodMessage and set the exception. |
|
| Method Summary | |
|---|---|
boolean |
causedException()
did the method invocation cause an exception ? |
Throwable |
getException()
get the exception. |
Object |
getResult()
get the result object. |
void |
setException(Throwable t)
set the exception. |
void |
setResult(Object result)
set the result. |
String |
toString()
String representation for debug outputs. |
void |
writeBody(ObjectOutputStream out)
write the body of the message to a stream. |
| Methods inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage |
|---|
getFuncID, getXID, parse, readBytes, readStringArray, send, setXID, writeBytes, writeStringArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MethodResultMessage()
| Method Detail |
|---|
public void writeBody(ObjectOutputStream out)
throws IOException
writeBody in class RemoteOSGiMessageout - the ObjectOutputStream.
IOException - in case of IO failures.ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage#getBody()public boolean causedException()
true, if an exception has been thrown on the
remote side. In this case, the exception can be retrieved through
the getException method.public Object getResult()
public void setResult(Object result)
result - the result.public Throwable getException()
null if non was thrown.public void setException(Throwable t)
t - the exception.public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||