|
Play Framework/Scala example source code file (ServerConfig.scala)
The ServerConfig.scala Play Framework example source code/* * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package play.core.server import java.io.File import java.util.Properties import play.api.Mode /** * Common configuration for servers such as NettyServer. */ case class ServerConfig( rootDir: File, port: Option[Int], sslPort: Option[Int] = None, address: String = "0.0.0.0", mode: Mode.Mode = Mode.Prod, properties: Properties) { // Some basic validation of config if (!port.isDefined && !sslPort.isDefined) throw new IllegalArgumentException("Must provide either an HTTP port or an HTTPS port") } Other Play Framework source code examplesHere is a short list of links related to this Play Framework ServerConfig.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.