com.solers.slp
Class ServiceRequest

java.lang.Object
  |
  +--com.solers.slp.SLPMessage
        |
        +--com.solers.slp.UAMessage
              |
              +--com.solers.slp.ServiceRequest

class ServiceRequest
extends UAMessage

The ServiceRequest SLP Message.

Author:
Patrick Callis

Field Summary
private  String _scopes
           
private  String _searchFilter
           
private  String _spi
           
private  ServiceType _type
           
 
Fields inherited from class com.solers.slp.UAMessage
_isMcast, _responders, _schedule, _sentAt, _timesSent
 
Fields inherited from class com.solers.slp.SLPMessage
_locale, _msgType, _xid, ATTRRPLY, ATTRRQST, DAADVERT, SAADVERT, SRVACK, SRVDEREG, SRVREG, SRVRPLY, SRVRQST, SRVTYPERPLY, SRVTYPERQST
 
Constructor Summary
(package private) ServiceRequest(ServiceType type, String scopes, String searchFilter, Locale locale)
           
 
Method Summary
protected  int calcSize()
          Implemented by subclasses to return the size required by the body of the message.
 String toString()
           
protected  void writeBody(DataOutput out)
          Implemented by subclasses to write the message body to a DataOutput.
 
Methods inherited from class com.solers.slp.UAMessage
addResponder, getResponders, isMcast, nextTimeout, sent, setMcast, setTransmitSchedule
 
Methods inherited from class com.solers.slp.SLPMessage
getXid, setXid, writeHeader, writeMessage
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

_type

private ServiceType _type

_scopes

private String _scopes

_searchFilter

private String _searchFilter

_spi

private String _spi
Constructor Detail

ServiceRequest

ServiceRequest(ServiceType type,
               String scopes,
               String searchFilter,
               Locale locale)
Method Detail

calcSize

protected int calcSize()
Description copied from class: SLPMessage
Implemented by subclasses to return the size required by the body of the message.
Overrides:
calcSize in class SLPMessage

writeBody

protected void writeBody(DataOutput out)
                  throws IOException
Description copied from class: SLPMessage
Implemented by subclasses to write the message body to a DataOutput. The number of bytes written should be equal to calcSize()
Overrides:
writeBody in class SLPMessage

toString

public String toString()
Overrides:
toString in class SLPMessage