Tabnine Logo
DefaultFullHttpRequest.content
Code IndexAdd Tabnine to your IDE (free)

How to use
content
method
in
io.netty.handler.codec.http.DefaultFullHttpRequest

Best Java code snippets using io.netty.handler.codec.http.DefaultFullHttpRequest.content (Showing top 20 results out of 315)

origin: wildfly/wildfly

@Override
public boolean equals(Object o) {
  if (!(o instanceof DefaultFullHttpRequest)) {
    return false;
  }
  DefaultFullHttpRequest other = (DefaultFullHttpRequest) o;
  return super.equals(other) &&
      content().equals(other.content()) &&
      trailingHeaders().equals(other.trailingHeaders());
}
origin: wildfly/wildfly

@Override
public FullHttpRequest copy() {
  return replace(content().copy());
}
origin: wildfly/wildfly

@Override
public FullHttpRequest duplicate() {
  return replace(content().duplicate());
}
origin: wildfly/wildfly

@Override
public FullHttpRequest retainedDuplicate() {
  return replace(content().retainedDuplicate());
}
origin: wildfly/wildfly

@Override
public int hashCode() {
  int hash = this.hash;
  if (hash == 0) {
    if (content().refCnt() != 0) {
      try {
        hash = 31 + content().hashCode();
      } catch (IllegalReferenceCountException ignored) {
        // Handle race condition between checking refCnt() == 0 and using the object.
        hash = 31;
      }
    } else {
      hash = 31;
    }
    hash = 31 * hash + trailingHeaders().hashCode();
    hash = 31 * hash + super.hashCode();
    this.hash = hash;
  }
  return hash;
}
origin: Netflix/zuul

final ByteBuf chunk = ((DefaultFullHttpRequest) nativeRequest).content();
request.bufferBodyContents(new DefaultLastHttpContent(chunk));
origin: Netflix/zuul

final ByteBuf chunk = ((DefaultFullHttpRequest) nativeRequest).content();
request.bufferBodyContents(new DefaultLastHttpContent(chunk));
origin: rackerlabs/blueflood

private FullHttpRequest createRequest(HttpMethod method, String uri, String requestBody) {
  DefaultFullHttpRequest rawRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, method, "/v2.0/" + TENANT + "/events/" + uri);
  rawRequest.headers().set("tenantId", TENANT);
  if (!requestBody.equals(""))
    rawRequest.content().writeBytes(Unpooled.copiedBuffer(requestBody.getBytes()));
  return HttpRequestWithDecodedQueryParams.create(rawRequest);
}
origin: rackerlabs/blueflood

private FullHttpRequest createRequest(HttpMethod method, String uri, String requestBody) {
  DefaultFullHttpRequest rawRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, method, uri);
  rawRequest.headers().set("tenantId", TENANT);
  if (!requestBody.equals(""))
    rawRequest.content().writeBytes(Unpooled.copiedBuffer(requestBody.getBytes()));
  return HttpRequestWithDecodedQueryParams.create(rawRequest);
}
origin: io.netty/netty-codec-http

@Override
public boolean equals(Object o) {
  if (!(o instanceof DefaultFullHttpRequest)) {
    return false;
  }
  DefaultFullHttpRequest other = (DefaultFullHttpRequest) o;
  return super.equals(other) &&
      content().equals(other.content()) &&
      trailingHeaders().equals(other.trailingHeaders());
}
origin: apache/activemq-artemis

@Override
public boolean equals(Object o) {
  if (!(o instanceof DefaultFullHttpRequest)) {
    return false;
  }
  DefaultFullHttpRequest other = (DefaultFullHttpRequest) o;
  return super.equals(other) &&
      content().equals(other.content()) &&
      trailingHeaders().equals(other.trailingHeaders());
}
origin: org.apache.activemq/artemis-jms-client-all

@Override
public boolean equals(Object o) {
  if (!(o instanceof DefaultFullHttpRequest)) {
    return false;
  }
  DefaultFullHttpRequest other = (DefaultFullHttpRequest) o;
  return super.equals(other) &&
      content().equals(other.content()) &&
      trailingHeaders().equals(other.trailingHeaders());
}
origin: org.jboss.eap/wildfly-client-all

@Override
public boolean equals(Object o) {
  if (!(o instanceof DefaultFullHttpRequest)) {
    return false;
  }
  DefaultFullHttpRequest other = (DefaultFullHttpRequest) o;
  return super.equals(other) &&
      content().equals(other.content()) &&
      trailingHeaders().equals(other.trailingHeaders());
}
origin: io.netty/netty-codec-http

@Override
public FullHttpRequest copy() {
  return replace(content().copy());
}
origin: io.netty/netty-codec-http

@Override
public FullHttpRequest duplicate() {
  return replace(content().duplicate());
}
origin: apache/activemq-artemis

@Override
public FullHttpRequest duplicate() {
  return replace(content().duplicate());
}
origin: apache/activemq-artemis

@Override
public FullHttpRequest retainedDuplicate() {
  return replace(content().retainedDuplicate());
}
origin: io.netty/netty-codec-http

@Override
public FullHttpRequest retainedDuplicate() {
  return replace(content().retainedDuplicate());
}
origin: awslabs/mxnet-model-server

private void testPredictionsJson(Channel channel) throws InterruptedException {
  result = null;
  latch = new CountDownLatch(1);
  DefaultFullHttpRequest req =
      new DefaultFullHttpRequest(
          HttpVersion.HTTP_1_1, HttpMethod.POST, "/predictions/noop");
  req.content().writeCharSequence("{\"data\": \"test\"}", CharsetUtil.UTF_8);
  HttpUtil.setContentLength(req, req.content().readableBytes());
  req.headers().set(HttpHeaderNames.CONTENT_TYPE, HttpHeaderValues.APPLICATION_JSON);
  channel.writeAndFlush(req);
  latch.await();
  Assert.assertEquals(result, "OK");
}
origin: awslabs/mxnet-model-server

private void testPredictionsBinary(Channel channel) throws InterruptedException {
  result = null;
  latch = new CountDownLatch(1);
  DefaultFullHttpRequest req =
      new DefaultFullHttpRequest(
          HttpVersion.HTTP_1_1, HttpMethod.POST, "/predictions/noop");
  req.content().writeCharSequence("test", CharsetUtil.UTF_8);
  HttpUtil.setContentLength(req, req.content().readableBytes());
  req.headers().set(HttpHeaderNames.CONTENT_TYPE, HttpHeaderValues.APPLICATION_OCTET_STREAM);
  channel.writeAndFlush(req);
  latch.await();
  Assert.assertEquals(result, "OK");
}
io.netty.handler.codec.httpDefaultFullHttpRequestcontent

Popular methods of DefaultFullHttpRequest

  • <init>
  • headers
  • trailingHeaders
  • decoderResult
  • method
  • protocolVersion
  • replace
  • setDecoderResult
  • uri
  • retain
  • copy
  • equals
  • copy,
  • equals,
  • refCnt,
  • release,
  • setUri

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFrame (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm plugins
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