Package org.restlet.data
Class RecipientInfo
java.lang.Object
org.restlet.data.RecipientInfo
Describes 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.
Note that when used with HTTP connectors, this class maps to the "Via" header.
- Author:
- Jerome Louvel
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.RecipientInfo(Protocol protocol, String name, String agent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional comment, typically the software agent name.getName()Returns the host name and port number or a pseudonym.Returns the protocol used to communicate with the recipient.voidsetComment(String comment) Sets the optional comment, typically the software agent name.voidSets the host name and port number or a pseudonym.voidsetProtocol(Protocol protocol) Sets the protocol used to communicate with the recipient.
-
Constructor Details
-
RecipientInfo
public RecipientInfo()Default constructor. -
RecipientInfo
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 Details
-
getComment
Returns the optional comment, typically the software agent name.- Returns:
- The optional comment.
-
getName
Returns the host name and port number or a pseudonym.- Returns:
- The host name and port number or a pseudonym.
-
getProtocol
Returns the protocol used to communicate with the recipient.- Returns:
- The protocol used to communicate with the recipient.
-
setComment
Sets the optional comment, typically the software agent name.- Parameters:
comment- The optional comment.
-
setName
Sets the host name and port number or a pseudonym.- Parameters:
name- The host name and port number or a pseudonym.
-
setProtocol
Sets the protocol used to communicate with the recipient.- Parameters:
protocol- The protocol used to communicate with the recipient.
-