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

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

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

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: 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: com.ning/async-http-client

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

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

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

@Override
public String getProtocolName() {
  return response.getProtocolVersion().getProtocolName();
}
org.jboss.netty.handler.codec.httpHttpVersiongetProtocolName

Javadoc

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

Popular methods of HttpVersion

  • equals
  • getText
    Returns the full protocol version text such as "HTTP/1.0".
  • getMajorVersion
    Returns the name of the protocol such as 1 in "HTTP/1.0".
  • getMinorVersion
    Returns the name of the protocol such as 0 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

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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