org.livetribe.slp.spi.msg
Class SrvAck

java.lang.Object
  extended by org.livetribe.slp.spi.msg.BytesBlock
      extended by org.livetribe.slp.spi.msg.Message
          extended by org.livetribe.slp.spi.msg.SrvAck

public class SrvAck
extends Message

The RFC 2608 SrvAck message body is the following:

  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |          Service Location header (function = SrvAck = 5)      |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |          Error Code           |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 

Version:
$Rev: 75 $ $Date: 2006-04-12 22:53:00 +0200 (Wed, 12 Apr 2006) $

Field Summary
 
Fields inherited from class org.livetribe.slp.spi.msg.Message
ATTR_RPLY_TYPE, ATTR_RQST_TYPE, DA_ADVERT_TYPE, SA_ADVERT_TYPE, SRV_ACK_TYPE, SRV_DEREG_TYPE, SRV_REG_TYPE, SRV_RPLY_TYPE, SRV_RQST_TYPE, SRV_TYPE_RPLY_TYPE, SRV_TYPE_RQST_TYPE
 
Fields inherited from class org.livetribe.slp.spi.msg.BytesBlock
EMPTY_BYTES, EMPTY_STRINGS
 
Constructor Summary
SrvAck()
           
 
Method Summary
protected  void deserializeBody(byte[] bytes)
           
 int getErrorCode()
           
 byte getMessageType()
           
protected  byte[] serializeBody()
           
 void setErrorCode(int errorCode)
           
 
Methods inherited from class org.livetribe.slp.spi.msg.Message
addExtension, attributesToBytes, deserialize, deserializeExtensions, getExtensions, getLanguage, getXID, isFresh, isMulticast, isOverflow, scopesToBytes, serialize, serializeExtensions, serviceTypeToBytes, setFresh, setLanguage, setMulticast, setOverflow, setXID
 
Methods inherited from class org.livetribe.slp.spi.msg.BytesBlock
escape, readInt, readString, readStringArray, stringToUTF8Bytes, unescape, utf8BytesToString, writeInt, writeString, writeStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrvAck

public SrvAck()
Method Detail

serializeBody

protected byte[] serializeBody()
                        throws ServiceLocationException
Specified by:
serializeBody in class Message
Throws:
ServiceLocationException

deserializeBody

protected void deserializeBody(byte[] bytes)
                        throws ServiceLocationException
Specified by:
deserializeBody in class Message
Throws:
ServiceLocationException

getMessageType

public byte getMessageType()
Specified by:
getMessageType in class Message

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)


Copyright © 2006-2012 LiveTribe. All Rights Reserved.