Tabnine Logo
HttpVersion.getMinor
Code IndexAdd Tabnine to your IDE (free)

How to use
getMinor
method
in
org.apache.commons.httpclient.HttpVersion

Best Java code snippets using org.apache.commons.httpclient.HttpVersion.getMinor (Showing top 7 results out of 315)

origin: commons-httpclient/commons-httpclient

/**
 * Compares this HTTP protocol version with another one.
 * 
 * @param anotherVer the version to be compared with.
 *  
 * @return a negative integer, zero, or a positive integer as this version is less than, 
 *    equal to, or greater than the specified version.     
 */
public int compareTo(HttpVersion anotherVer) {
  if (anotherVer == null) {
    throw new IllegalArgumentException("Version parameter may not be null"); 
  }
  int delta = getMajor() - anotherVer.getMajor();
  if (delta == 0) {
    delta = getMinor() - anotherVer.getMinor();
  }
  return delta;
}
origin: foxinmy/weixin4j

@Override
public HttpVersion getProtocol() {
  org.apache.commons.httpclient.HttpVersion version = httpMethod
      .getParams().getVersion();
  if (version == null) {
    return null;
  }
  Header connection = httpMethod.getResponseHeader("Connection");
  if (protocol == null) {
    protocol = new HttpVersion("HTTP", version.getMajor(),
        version.getMinor(), connection != null
            && KEEP_ALIVE.equalsIgnoreCase(connection
                .getValue()));
  }
  return protocol;
}
origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Compares this HTTP protocol version with another one.
 * 
 * @param anotherVer the version to be compared with.
 *  
 * @return a negative integer, zero, or a positive integer as this version is less than, 
 *    equal to, or greater than the specified version.     
 */
public int compareTo(HttpVersion anotherVer) {
  if (anotherVer == null) {
    throw new IllegalArgumentException("Version parameter may not be null"); 
  }
  int delta = getMajor() - anotherVer.getMajor();
  if (delta == 0) {
    delta = getMinor() - anotherVer.getMinor();
  }
  return delta;
}
origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Compares this HTTP protocol version with another one.
 * 
 * @param anotherVer the version to be compared with.
 *  
 * @return a negative integer, zero, or a positive integer as this version is less than, 
 *    equal to, or greater than the specified version.     
 */
public int compareTo(HttpVersion anotherVer) {
  if (anotherVer == null) {
    throw new IllegalArgumentException("Version parameter may not be null"); 
  }
  int delta = getMajor() - anotherVer.getMajor();
  if (delta == 0) {
    delta = getMinor() - anotherVer.getMinor();
  }
  return delta;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Compares this HTTP protocol version with another one.
 * 
 * @param anotherVer the version to be compared with.
 *  
 * @return a negative integer, zero, or a positive integer as this version is less than, 
 *    equal to, or greater than the specified version.     
 */
public int compareTo(HttpVersion anotherVer) {
  if (anotherVer == null) {
    throw new IllegalArgumentException("Version parameter may not be null"); 
  }
  int delta = getMajor() - anotherVer.getMajor();
  if (delta == 0) {
    delta = getMinor() - anotherVer.getMinor();
  }
  return delta;
}
origin: org.apache.commons/httpclient

/**
 * Compares this HTTP protocol version with another one.
 * 
 * @param anotherVer the version to be compared with.
 *  
 * @return a negative integer, zero, or a positive integer as this version is less than, 
 *    equal to, or greater than the specified version.     
 */
public int compareTo(HttpVersion anotherVer) {
  if (anotherVer == null) {
    throw new IllegalArgumentException("Version parameter may not be null"); 
  }
  int delta = getMajor() - anotherVer.getMajor();
  if (delta == 0) {
    delta = getMinor() - anotherVer.getMinor();
  }
  return delta;
}
origin: com.foxinmy/weixin4j-base

@Override
public HttpVersion getProtocol() {
  org.apache.commons.httpclient.HttpVersion version = httpMethod
      .getParams().getVersion();
  if (version == null) {
    return null;
  }
  Header connection = httpMethod.getResponseHeader("Connection");
  if (protocol == null) {
    protocol = new HttpVersion("HTTP", version.getMajor(),
        version.getMinor(), connection != null
            && KEEP_ALIVE.equalsIgnoreCase(connection
                .getValue()));
  }
  return protocol;
}
org.apache.commons.httpclientHttpVersiongetMinor

Javadoc

Returns the minor version number of the HTTP protocol.

Popular methods of HttpVersion

  • parse
    Parses the textual representation of the given HTTP protocol version.
  • toString
  • equals
    Test if the HTTP protocol version is equal to the given number.
  • lessEquals
    Test if the HTTP protocol version is less or equal to the given number.
  • getMajor
    Returns the major version number of the HTTP protocol.
  • greaterEquals
    Test if the HTTP protocol version is greater or equal to the given number.
  • <init>
    Create an HTTP protocol version designator.
  • compareTo
    Compares this HTTP protocol version with another one.

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now