ch.ethz.iks.slp.impl
Class SLPMessage

Package class diagram package SLPMessage
java.lang.Object
  extended by ch.ethz.iks.slp.impl.SLPMessage

public abstract class SLPMessage
extends Object

base class for all messages that the SLP framework uses.

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

Field Summary
static byte ATTRRPLY
          the message funcID values according to RFC 2608, Attribute Reply = 7.
static byte ATTRRQST
          the message funcID values according to RFC 2608, Attribute Request = 6.
static byte DAADVERT
          the message funcID values according to RFC 2608, DA Advertisement = 8.
static byte SAADVERT
          the message funcID values according to RFC 2608, SA Advertisement = 11.
static byte SRVACK
          the message funcID values according to RFC 2608, Service Acknowledgement = 5.
static byte SRVDEREG
          the message funcID values according to RFC 2608, Service Deregistration = 4.
static byte SRVREG
          the message funcID values according to RFC 2608, Service Registration = 3.
static byte SRVRPLY
          the message funcID values according to RFC 2608, Service Reply = 2.
static byte SRVRQST
          the message funcID values according to RFC 2608, Service Request = 1.
static byte SRVTYPERPLY
          the message funcID values according to RFC 2608, Service Type Reply = 10.
static byte SRVTYPERQST
          the message funcID values according to RFC 2608, Service Type Request = 9.
 
Constructor Summary
SLPMessage()
           
 
Method Summary
 String toString()
          Get a string representation of the message.
protected  void writeHeader(DataOutputStream out, int msgSize)
          get the bytes from a SLPMessage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SRVRQST

public static final byte SRVRQST
the message funcID values according to RFC 2608, Service Request = 1.

See Also:
Constant Field Values

SRVRPLY

public static final byte SRVRPLY
the message funcID values according to RFC 2608, Service Reply = 2.

See Also:
Constant Field Values

SRVREG

public static final byte SRVREG
the message funcID values according to RFC 2608, Service Registration = 3.

See Also:
Constant Field Values

SRVDEREG

public static final byte SRVDEREG
the message funcID values according to RFC 2608, Service Deregistration = 4.

See Also:
Constant Field Values

SRVACK

public static final byte SRVACK
the message funcID values according to RFC 2608, Service Acknowledgement = 5.

See Also:
Constant Field Values

ATTRRQST

public static final byte ATTRRQST
the message funcID values according to RFC 2608, Attribute Request = 6.

See Also:
Constant Field Values

ATTRRPLY

public static final byte ATTRRPLY
the message funcID values according to RFC 2608, Attribute Reply = 7.

See Also:
Constant Field Values

DAADVERT

public static final byte DAADVERT
the message funcID values according to RFC 2608, DA Advertisement = 8.

See Also:
Constant Field Values

SRVTYPERQST

public static final byte SRVTYPERQST
the message funcID values according to RFC 2608, Service Type Request = 9.

See Also:
Constant Field Values

SRVTYPERPLY

public static final byte SRVTYPERPLY
the message funcID values according to RFC 2608, Service Type Reply = 10.

See Also:
Constant Field Values

SAADVERT

public static final byte SAADVERT
the message funcID values according to RFC 2608, SA Advertisement = 11.

See Also:
Constant Field Values
Constructor Detail

SLPMessage

public SLPMessage()
Method Detail

writeHeader

protected void writeHeader(DataOutputStream out,
                           int msgSize)
                    throws IOException
get the bytes from a SLPMessage. Processes the header and then calls the getBody() method of the implementing subclass.

Throws:
IOException
ServiceLocationException - in case of IOExceptions.

toString

public String toString()
Get a string representation of the message. Overridden by message subtypes.

Overrides:
toString in class Object
Returns:
a String.


Copyright © 2014 universAAL Consortium. All Rights Reserved.