|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.protocol.ResolverSrdiMsg
public abstract class ResolverSrdiMsg
ResolverSrdiMsg is generic resolver wrapper for Services that wish to implement their own distribution of indices. this message provides the scoping within the group, and service. In addition it also defines a credential which should be verified by the service.
Constructor Summary | |
---|---|
ResolverSrdiMsg()
|
Method Summary | |
---|---|
Credential |
getCredential()
returns the credential |
abstract Document |
getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
String |
getHandlerName()
returns the handlername |
static String |
getMessageType()
All messages have a type (in xml this is ! |
String |
getPayload()
returns the payload |
void |
setCredential(Credential cred)
set the credential object |
void |
setHandlerName(String name)
set the handlername |
void |
setPayload(String payload)
set the SRDI payload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResolverSrdiMsg()
Method Detail |
---|
public static String getMessageType()
public String getHandlerName()
public Credential getCredential()
public String getPayload()
public void setHandlerName(String name)
name
- string handlernamepublic void setCredential(Credential cred)
cred
- credentialpublic void setPayload(String payload)
payload
- The new payload valuepublic abstract Document getDocument(MimeMediaType asMimeType)
asMimeType
- mime-type representation requested for that document
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |