congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
HttpVersion.getText
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: io.netty/netty

/**
 * Returns the full protocol version text such as {@code "HTTP/1.0"}.
 */
@Override
public String toString() {
  return getText();
}
origin: io.netty/netty

@Override
public String toString() {
  StringBuilder buf = new StringBuilder();
  buf.append(getClass().getSimpleName());
  buf.append("(version: ");
  buf.append(getProtocolVersion().getText());
  buf.append(", keepAlive: ");
  buf.append(HttpHeaders.isKeepAlive(this));
  buf.append(", chunked: ");
  buf.append(isChunked());
  buf.append(')');
  buf.append(StringUtil.NEWLINE);
  appendHeaders(buf);
  // Remove the last newline.
  buf.setLength(buf.length() - StringUtil.NEWLINE.length());
  return buf.toString();
}
origin: io.netty/netty

  @Override
  public String toString() {
    StringBuilder buf = new StringBuilder();
    buf.append(getClass().getSimpleName());
    buf.append("(chunked: ");
    buf.append(isChunked());
    buf.append(')');
    buf.append(StringUtil.NEWLINE);
    buf.append(getProtocolVersion().getText());
    buf.append(' ');
    buf.append(getStatus().toString());
    buf.append(StringUtil.NEWLINE);
    appendHeaders(buf);

    // Remove the last newline.
    buf.setLength(buf.length() - StringUtil.NEWLINE.length());
    return buf.toString();
  }
}
origin: io.netty/netty

/**
 * Sets the HTTP version header.
 */
public static void setVersion(int spdyVersion, SpdyHeadersFrame frame, HttpVersion httpVersion) {
  frame.headers().set(HttpNames.VERSION, httpVersion.getText());
}
origin: io.netty/netty

  @Override
  public String toString() {
    StringBuilder buf = new StringBuilder();
    buf.append(getClass().getSimpleName());
    buf.append("(chunked: ");
    buf.append(isChunked());
    buf.append(')');
    buf.append(StringUtil.NEWLINE);
    buf.append(getMethod().toString());
    buf.append(' ');
    buf.append(getUri());
    buf.append(' ');
    buf.append(getProtocolVersion().getText());
    buf.append(StringUtil.NEWLINE);
    appendHeaders(buf);

    // Remove the last newline.
    buf.setLength(buf.length() - StringUtil.NEWLINE.length());
    return buf.toString();
  }
}
origin: com.ning/async-http-client

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

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

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

@Override
public String getProtocolText() {
  return response.getProtocolVersion().getText();
}
origin: k3po/k3po

@Override
public boolean decode(Channel channel) throws Exception {
  HttpChannelConfig httpConfig = (HttpChannelConfig) channel.getConfig();
  HttpVersion version = httpConfig.getVersion();
  ChannelBuffer buffer = copiedBuffer(version.getText(), UTF_8);
  versionDecoder.decode(buffer);
  return true;
}
org.jboss.netty.handler.codec.httpHttpVersiongetText

Javadoc

Returns the full protocol version text such as "HTTP/1.0".

Popular methods of HttpVersion

  • equals
  • 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".
  • 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

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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