|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.protocol.ResolverResponseMsg
public abstract class ResolverResponseMsg
Generic Resolver Service message "Response".
ResolverService
,
ResolverQueryMsg
,
JXTA Protocols Specification : Peer Resolver ProtocolField Summary | |
---|---|
int |
queryid
Description of the Field |
Constructor Summary | |
---|---|
ResolverResponseMsg()
|
Method Summary | |
---|---|
static String |
getAdvertisementType()
All messages have a type (in xml this is ! |
StructuredDocument |
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 |
int |
getQueryId()
returns queryid value |
String |
getResponse()
returns the response body for this message. |
abstract RouteAdvertisement |
getSrcPeerRoute()
Get optional route information that may be attached to the response. |
void |
setCredential(StructuredDocument cred)
set the credential for this response. |
void |
setHandlerName(String name)
set the handlername |
void |
setQueryId(int id)
set the query id to which this message is a response. |
void |
setResponse(String response)
Set the response body for this message. |
abstract void |
setSrcPeerRoute(RouteAdvertisement route)
Set optional route information as part of the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int queryid
Constructor Detail |
---|
public ResolverResponseMsg()
Method Detail |
---|
public StructuredDocument getCredential()
public abstract Document getDocument(MimeMediaType asMimeType)
asMimeType
- mime-type representation requested for that document
public abstract void setSrcPeerRoute(RouteAdvertisement route)
route
- RouteAdvertisement to send the responsepublic abstract RouteAdvertisement getSrcPeerRoute()
public String getHandlerName()
public int getQueryId()
public String getResponse()
public void setCredential(StructuredDocument cred)
cred
- string credentialpublic void setHandlerName(String name)
name
- string handlernamepublic void setQueryId(int id)
id
- the query id for this response.public void setResponse(String response)
response
- response body as a string.public static String getAdvertisementType()
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |