Tabnine Logo
StaticFile
Code IndexAdd Tabnine to your IDE (free)

How to use
StaticFile
in
cc.blynk.core.http.handlers

Best Java code snippets using cc.blynk.core.http.handlers.StaticFile (Showing top 2 results out of 315)

origin: blynkkk/blynk-server

private StaticFile getStaticPath(String path) {
  for (StaticFile staticPath : staticPaths) {
    if (staticPath.isStatic(path)) {
      return staticPath;
    }
  }
  return null;
}
origin: blynkkk/blynk-server

private void initHttpPipeline(ChannelHandlerContext ctx) {
  ctx.pipeline()
      .addLast(letsEncryptHandler)
      .addLast("HttpChunkedWrite", new ChunkedWriteHandler())
      .addLast("HttpUrlMapper", new UrlReWriterHandler("/favicon.ico", "/static/favicon.ico"))
      .addLast("HttpStaticFile", new StaticFileHandler(holder.props, new StaticFile("/static"),
              new StaticFileEdsWith(FileUtils.CSV_DIR, ".gz"),
              new StaticFileEdsWith(FileUtils.CSV_DIR, ".zip")))
      .addLast(resetPasswordLogic)
      .addLast(httpAPILogic)
      .addLast(noMatchHandler)
      .remove(this);
  if (log.isTraceEnabled()) {
    log.trace("Initialized http pipeline. {}", ctx.pipeline().names());
  }
}
cc.blynk.core.http.handlersStaticFile

Javadoc

The Blynk Project. Created by Dmitriy Dumanskiy. Created on 11.07.16.

Most used methods

  • <init>
  • isStatic

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Join (org.hibernate.mapping)
  • From CI to AI: The AI layer in your organization
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