Package org.restlet.data
Class Product
java.lang.Object
org.restlet.data.Product
Product tokens are used to allow communicating applications to identify
themselves by software name and version.
- Author:
- Thierry Boileau
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the facultative comment.getName()Returns the product name.Returns the version of the product.voidsetComment(String comment) Sets the facultative comment.voidSets the product name.voidsetVersion(String version) Sets the version of the product.
-
Constructor Details
-
Product
Constructor.- Parameters:
name- The product name.version- The product version.comment- The product comment.
-
-
Method Details
-
getComment
Returns the facultative comment.- Returns:
- The facultative comment.
-
getName
Returns the product name.- Returns:
- The product name.
-
getVersion
Returns the version of the product.- Returns:
- The version of the product.
-
setComment
Sets the facultative comment.- Parameters:
comment- The facultative comment.
-
setName
Sets the product name.- Parameters:
name- The product name.
-
setVersion
Sets the version of the product.- Parameters:
version- The version of the product.
-