Class HttpVersion

All Implemented Interfaces:
Serializable, Cloneable

public final class HttpVersion
extends ProtocolVersion
implements Serializable
Represents an HTTP version, as specified in RFC 2616.
Version:
$Revision: 609106 $ $Date: 2008-01-05 01:15:42 -0800 (Sat, 05 Jan 2008) $
Author:
Oleg Kalnichevski
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • HttpVersion

      public HttpVersion​(int major, int minor)
      Create an HTTP protocol version designator.
      Parameters:
      major - the major version number of the HTTP protocol
      minor - the minor version number of the HTTP protocol
      Throws:
      IllegalArgumentException - if either major or minor version number is negative
  • Method Details