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

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

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

origin: mpusher/mpush

  @SuppressWarnings("unused")
  private HttpRequest copy(String uri, HttpRequest request) {
    HttpRequest nue = request;
    if (request instanceof DefaultFullHttpRequest) {
      DefaultFullHttpRequest dfr = (DefaultFullHttpRequest) request;
      FullHttpRequest rq;
      try {
        rq = dfr.copy();
      } catch (IllegalReferenceCountException e) { // Empty byteBuf
        rq = dfr;
      }
      rq.setUri(uri);
    } else {
      DefaultHttpRequest dfr = new DefaultHttpRequest(request.protocolVersion(), request.method(), uri);
      dfr.headers().set(request.headers());
      nue = dfr;
    }
    return nue;
  }
}
io.netty.handler.codec.httpDefaultFullHttpRequestcopy

Popular methods of DefaultFullHttpRequest

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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