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

How to use
getMajorVersion
method
in
org.jboss.netty.handler.codec.http.HttpVersion

Best Java code snippets using org.jboss.netty.handler.codec.http.HttpVersion.getMajorVersion (Showing top 7 results out of 315)

origin: io.netty/netty

  public int compareTo(HttpVersion o) {
    int v = getProtocolName().compareTo(o.getProtocolName());
    if (v != 0) {
      return v;
    }

    v = getMajorVersion() - o.getMajorVersion();
    if (v != 0) {
      return v;
    }

    return getMinorVersion() - o.getMinorVersion();
  }
}
origin: io.netty/netty

@Override
public boolean equals(Object o) {
  if (!(o instanceof HttpVersion)) {
    return false;
  }
  HttpVersion that = (HttpVersion) o;
  return getMinorVersion() == that.getMinorVersion() &&
      getMajorVersion() == that.getMajorVersion() &&
      getProtocolName().equals(that.getProtocolName());
}
origin: io.netty/netty

@Override
public int hashCode() {
  return (getProtocolName().hashCode() * 31 + getMajorVersion()) * 31 +
      getMinorVersion();
}
origin: com.ning/async-http-client

@Override
public int getProtocolMajorVersion() {
  return response.getProtocolVersion().getMajorVersion();
}
origin: io.gatling/async-http-client

@Override
public int getProtocolMajorVersion() {
  return response.getProtocolVersion().getMajorVersion();
}
origin: org.asynchttpclient/async-http-client-netty3

@Override
public int getProtocolMajorVersion() {
  return response.getProtocolVersion().getMajorVersion();
}
origin: org.asynchttpclient/async-http-client-netty3-provider

@Override
public int getProtocolMajorVersion() {
  return response.getProtocolVersion().getMajorVersion();
}
org.jboss.netty.handler.codec.httpHttpVersiongetMajorVersion

Javadoc

Returns the name of the protocol such as 1 in "HTTP/1.0".

Popular methods of HttpVersion

  • equals
  • getText
    Returns the full protocol version text such as "HTTP/1.0".
  • getMinorVersion
    Returns the name of the protocol such as 0 in "HTTP/1.0".
  • getProtocolName
    Returns the name of the protocol such as "HTTP" in "HTTP/1.0".
  • toString
    Returns the full protocol version text such as "HTTP/1.0".
  • isKeepAliveDefault
    Returns true if and only if the connection is kept alive unless the "Connection" header is set to "c
  • valueOf
    Returns an existing or new HttpVersion instance which matches to the specified protocol version stri
  • <init>
    Creates a new HTTP version with the specified version string. You will not need to create a new inst
  • compareTo

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • Menu (java.awt)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JPanel (javax.swing)
  • Top plugins for WebStorm
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