Class Product

java.lang.Object
org.restlet.data.Product

public class Product extends Object
Product tokens are used to allow communicating applications to identify themselves by software name and version.
Author:
Thierry Boileau
See Also:
  • Constructor Details

    • Product

      public Product(String name, String version, String comment)
      Constructor.
      Parameters:
      name - The product name.
      version - The product version.
      comment - The product comment.
  • Method Details

    • getComment

      public String getComment()
      Returns the facultative comment.
      Returns:
      The facultative comment.
    • getName

      public String getName()
      Returns the product name.
      Returns:
      The product name.
    • getVersion

      public String getVersion()
      Returns the version of the product.
      Returns:
      The version of the product.
    • setComment

      public void setComment(String comment)
      Sets the facultative comment.
      Parameters:
      comment - The facultative comment.
    • setName

      public void setName(String name)
      Sets the product name.
      Parameters:
      name - The product name.
    • setVersion

      public void setVersion(String version)
      Sets the version of the product.
      Parameters:
      version - The version of the product.