com.solers.slp
Class ServiceRegistration
java.lang.Object
|
+--com.solers.slp.SLPMessage
|
+--com.solers.slp.ServiceRegistration
- class ServiceRegistration
- extends SLPMessage
The ServiceRegistration SLP Message.
- Author:
- Patrick Callis
Fields inherited from class com.solers.slp.SLPMessage |
_locale, _msgType, _xid, ATTRRPLY, ATTRRQST, DAADVERT, SAADVERT, SRVACK, SRVDEREG, SRVREG, SRVRPLY, SRVRQST, SRVTYPERPLY, SRVTYPERQST |
Method Summary |
protected int |
calcSize()
Implemented by subclasses to return the size required
by the body of the message. |
private byte[] |
getAuthData(String spi,
int timestamp)
|
(package private) void |
sign()
|
String |
toString()
|
protected void |
writeBody(DataOutput out)
Implemented by subclasses to write the message body to
a DataOutput. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
_url
private ServiceURL _url
_attributes
private Vector _attributes
_scopes
private String _scopes
_attrAuths
private AuthenticationBlock[] _attrAuths
ServiceRegistration
ServiceRegistration(ServiceURL url,
Vector attributes,
Locale locale,
String scopes)
sign
void sign()
throws ServiceLocationException
getAuthData
private byte[] getAuthData(String spi,
int timestamp)
throws IOException
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
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
toString
public String toString()
- Overrides:
toString
in class SLPMessage