Package org.restlet.client.data
Class Product
- java.lang.Object
-
- org.restlet.client.data.Product
-
public class Product extends java.lang.ObjectProduct tokens are used to allow communicating applications to identify themselves by software name and version.- Author:
- Thierry Boileau
- See Also:
- User-Agent, Product Tokens
-
-
Constructor Summary
Constructors Constructor Description Product(java.lang.String name, java.lang.String version, java.lang.String comment)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()Returns the facultative comment.java.lang.StringgetName()Returns the product name.java.lang.StringgetVersion()Returns the version of the product.voidsetComment(java.lang.String comment)Sets the facultative comment.voidsetName(java.lang.String name)Sets the product name.voidsetVersion(java.lang.String version)Sets the version of the product.
-
-
-
Method Detail
-
getComment
public java.lang.String getComment()
Returns the facultative comment.- Returns:
- The facultative comment.
-
getName
public java.lang.String getName()
Returns the product name.- Returns:
- The product name.
-
getVersion
public java.lang.String getVersion()
Returns the version of the product.- Returns:
- The version of the product.
-
setComment
public void setComment(java.lang.String comment)
Sets the facultative comment.- Parameters:
comment- The facultative comment.
-
setName
public void setName(java.lang.String name)
Sets the product name.- Parameters:
name- The product name.
-
setVersion
public void setVersion(java.lang.String version)
Sets the version of the product.- Parameters:
version- The version of the product.
-
-