Codota Logo
HttpIO.done
Code IndexAdd Codota to your IDE (free)

How to use
done
method
in
org.rapidoid.http.impl.lowlevel.HttpIO

Best Java code snippets using org.rapidoid.http.impl.lowlevel.HttpIO.done (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: rapidoid/rapidoid

private void onDone() {
  if (stopped) {
    return;
  }
  boolean willBeDone = true;
  if (!rendering) {
    renderResponseOrError();
    willBeDone = false;
  }
  if (!completed) {
    // FIXME is this still required?
    completed = true;
  }
  if (response != null) {
    response.finish();
  }
  if (willBeDone) {
    HttpIO.INSTANCE.done(ReqImpl.this);
  }
}
origin: rapidoid/rapidoid

private void renderResponse() {
  HttpUtils.postProcessResponse(response);
  if (response.raw() != null) {
    int posBeforeResponse = channel.output().size();
    byte[] bytes = Msc.toBytes(response.raw());
    channel.write(bytes);
    if (willSaveToCache()) posBeforeBody = posBeforeResponse + HttpUtils.findBodyStart(bytes);
    completed = true;
    HttpIO.INSTANCE.done(this);
  } else {
    // render the response body
    RespBody body = BodyRenderer.toRespBody(this, response);
    // render the response
    doRendering(response.code(), body);
  }
}
origin: org.rapidoid/rapidoid-http-fast

private void onDone() {
  if (stopped) {
    return;
  }
  boolean willBeDone = true;
  if (!rendering) {
    renderResponseOrError();
    willBeDone = false;
  }
  if (!completed) {
    // FIXME is this still required?
    completed = true;
  }
  if (response != null) {
    response.finish();
  }
  if (willBeDone) {
    HttpIO.INSTANCE.done(ReqImpl.this);
  }
}
origin: org.rapidoid/rapidoid-http-fast

private void renderResponse() {
  HttpUtils.postProcessResponse(response);
  if (response.raw() != null) {
    int posBeforeResponse = channel.output().size();
    byte[] bytes = Msc.toBytes(response.raw());
    channel.write(bytes);
    if (willSaveToCache()) posBeforeBody = posBeforeResponse + HttpUtils.findBodyStart(bytes);
    completed = true;
    HttpIO.INSTANCE.done(this);
  } else {
    // render the response body
    RespBody body = BodyRenderer.toRespBody(this, response);
    // render the response
    doRendering(response.code(), body);
  }
}
org.rapidoid.http.impl.lowlevelHttpIOdone

Popular methods of HttpIO

  • errorAndDone
  • closeHeaders
  • error
  • removeTrailingSlash
  • respond
  • write200
  • writeBadRequest
  • writeContentLengthHeader
  • writeHttpResp

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now