Package ratpack.file.internal

Examples of ratpack.file.internal.ActivationBackedMimeTypes$GetMimeTypeFunction


  public static Registry buildBaseRegistry(Stopper stopper, LaunchConfig launchConfig) {
    ErrorHandler errorHandler = launchConfig.isDevelopment() ? new DefaultDevelopmentErrorHandler() : new DefaultProductionErrorHandler();

    RegistryBuilder registryBuilder = Registries.registry()
      .add(Stopper.class, stopper)
      .add(MimeTypes.class, new ActivationBackedMimeTypes())
      .add(PublicAddress.class, new DefaultPublicAddress(launchConfig.getPublicAddress(), launchConfig.getSSLContext() == null ? HTTP_SCHEME : HTTPS_SCHEME))
      .add(Redirector.class, new DefaultRedirector())
      .add(ClientErrorHandler.class, errorHandler)
      .add(ServerErrorHandler.class, errorHandler)
      .add(LaunchConfig.class, launchConfig)
View Full Code Here

TOP

Related Classes of ratpack.file.internal.ActivationBackedMimeTypes$GetMimeTypeFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.