ch.ethz.iks.r_osgi.messages
Class FetchServiceMessage

java.lang.Object
  extended by ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
      extended by ch.ethz.iks.r_osgi.messages.FetchServiceMessage

public final class FetchServiceMessage
extends RemoteOSGiMessage

FetchServiceMessage is used to signal the service provider that a remote peer wants to get a service that has been registered for remoting.

Since:
0.1
Author:
Jan S. Rellermeyer, ETH Zurich

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
FetchServiceMessage()
          creates a new FetchServiceMessage from ServiceURL.
 
Method Summary
 String getServiceID()
          get the service ID.
 void setServiceID(String serviceID)
          get the service ID.
 String toString()
          String representation for debug outputs.
 void writeBody(ObjectOutputStream out)
          gets the body of the message as raw bytes.
 
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

FetchServiceMessage

public FetchServiceMessage()
creates a new FetchServiceMessage from ServiceURL.

Method Detail

writeBody

public void writeBody(ObjectOutputStream out)
               throws IOException
gets the body of the message as raw bytes.

Specified by:
writeBody in class RemoteOSGiMessage
Parameters:
out - the ObjectOutputStream
Throws:
IOException - in case of IO failures.
See Also:
ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage#getBody()

getServiceID

public String getServiceID()
get the service ID.

Returns:
the service ID.

setServiceID

public void setServiceID(String serviceID)
get the service ID.

Parameters:
serviceID - the service ID.

toString

public String toString()
String representation for debug outputs.

Overrides:
toString in class Object
Returns:
a string representation.
See Also:
Object.toString()