Package org.restlet.data
Class RecipientInfo
- java.lang.Object
- 
- org.restlet.data.RecipientInfo
 
- 
 public class RecipientInfo extends java.lang.ObjectDescribes an intermediary via which the call went through. The intermediary is typically a proxy or a cache.
 
 Note that when used with HTTP connectors, this class maps to the "Via" header.- Author:
- Jerome Louvel
 
- 
- 
Constructor SummaryConstructors Constructor Description RecipientInfo()Default constructor.RecipientInfo(Protocol protocol, java.lang.String name, java.lang.String agent)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()Returns the optional comment, typically the software agent name.java.lang.StringgetName()Returns the host name and port number or a pseudonym.ProtocolgetProtocol()Returns the protocol used to communicate with the recipient.voidsetComment(java.lang.String comment)Sets the optional comment, typically the software agent name.voidsetName(java.lang.String name)Sets the host name and port number or a pseudonym.voidsetProtocol(Protocol protocol)Sets the protocol used to communicate with the recipient.
 
- 
- 
- 
Constructor Detail- 
RecipientInfopublic RecipientInfo() Default constructor.
 - 
RecipientInfopublic RecipientInfo(Protocol protocol, java.lang.String name, java.lang.String agent) Constructor.- Parameters:
- protocol- The protocol used to communicate with the recipient.
- name- The host name and port number or a pseudonym.
- agent- The software agent.
 
 
- 
 - 
Method Detail- 
getCommentpublic java.lang.String getComment() Returns the optional comment, typically the software agent name.- Returns:
- The optional comment.
 
 - 
getNamepublic java.lang.String getName() Returns the host name and port number or a pseudonym.- Returns:
- The host name and port number or a pseudonym.
 
 - 
getProtocolpublic Protocol getProtocol() Returns the protocol used to communicate with the recipient.- Returns:
- The protocol used to communicate with the recipient.
 
 - 
setCommentpublic void setComment(java.lang.String comment) Sets the optional comment, typically the software agent name.- Parameters:
- comment- The optional comment.
 
 - 
setNamepublic void setName(java.lang.String name) Sets the host name and port number or a pseudonym.- Parameters:
- name- The host name and port number or a pseudonym.
 
 - 
setProtocolpublic void setProtocol(Protocol protocol) Sets the protocol used to communicate with the recipient.- Parameters:
- protocol- The protocol used to communicate with the recipient.
 
 
- 
 
-