Class Product


  • public class Product
    extends java.lang.Object
    Product tokens are used to allow communicating applications to identify themselves by software name and version.
    See Also:
    User-Agent, Product Tokens
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String comment
      Comment.
      private java.lang.String name
      Product name.
      private java.lang.String version
      Version number.
    • 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.String getComment()
      Returns the facultative comment.
      java.lang.String getName()
      Returns the product name.
      java.lang.String getVersion()
      Returns the version of the product.
      void setComment​(java.lang.String comment)
      Sets the facultative comment.
      void setName​(java.lang.String name)
      Sets the product name.
      void setVersion​(java.lang.String version)
      Sets the version of the product.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • comment

        private volatile java.lang.String comment
        Comment.
      • name

        private volatile java.lang.String name
        Product name.
      • version

        private volatile java.lang.String version
        Version number.
    • Constructor Detail

      • Product

        public Product​(java.lang.String name,
                       java.lang.String version,
                       java.lang.String comment)
        Constructor.
        Parameters:
        name - The product name.
        version - The product version.
        comment - The product comment.
    • 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.