Trait

com.twitter.finatra.http

HttpServer

Related Doc: package http

Permalink

trait HttpServer extends BaseHttpServer

Linear Supertypes
BaseHttpServer, TwitterServer, Warmup, Ports, DeprecatedLogging, Logging, TwitterServer, Stats, Lifecycle, Admin, AdminHttpServer, Hooks, Linters, Slf4jBridge, App, Logging, Logging, App, CloseAwaitably, CloseAwaitably0[Unit], Awaitable[Unit], Closable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpServer
  2. BaseHttpServer
  3. TwitterServer
  4. Warmup
  5. Ports
  6. DeprecatedLogging
  7. Logging
  8. TwitterServer
  9. Stats
  10. Lifecycle
  11. Admin
  12. AdminHttpServer
  13. Hooks
  14. Linters
  15. Slf4jBridge
  16. App
  17. Logging
  18. Logging
  19. App
  20. CloseAwaitably
  21. CloseAwaitably0
  22. Awaitable
  23. Closable
  24. AnyRef
  25. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def configureHttp(router: HttpRouter): Unit

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val MinGrace: Duration

    Permalink
    Definition Classes
    App
  5. def accessLogModule: Module

    Permalink

    Default com.twitter.inject.TwitterModule for providing a com.twitter.finagle.filter.LogFormatter.

    Default com.twitter.inject.TwitterModule for providing a com.twitter.finagle.filter.LogFormatter.

    returns

    a com.twitter.inject.TwitterModule which provides a com.twitter.finagle.filter.LogFormatter implementation.

    Attributes
    protected
  6. def addAdminRoute(route: Route): Unit

    Permalink
    Definition Classes
    AdminHttpServer
  7. def addAdminRoutes(newRoutes: Seq[Route]): Unit

    Permalink
    Definition Classes
    AdminHttpServer
  8. def addFrameworkModule(module: Module): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  9. def addFrameworkModules(modules: Module*): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  10. def addFrameworkOverrideModules(modules: Module*): Unit

    Permalink
    Attributes
    protected[com.twitter.inject]
    Definition Classes
    App
  11. def adminBoundAddress: InetSocketAddress

    Permalink
    Definition Classes
    AdminHttpServer
  12. var adminHttpServer: ListeningServer

    Permalink
    Attributes
    protected
    Definition Classes
    AdminHttpServer
  13. val adminPort: Flag[InetSocketAddress]

    Permalink
    Definition Classes
    AdminHttpServer
  14. def afterPostWarmup(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer → App
    Annotations
    @Lifecycle()
  15. def allowUndefinedFlags: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    App
  16. val appendFlag: Flag[Boolean]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  17. def args: Array[String]

    Permalink
    Definition Classes
    App
  18. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  19. val asyncFlag: Flag[Boolean]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  20. val asyncMaxSizeFlag: Flag[Int]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  21. def await(awaitables: Awaitable[_]*): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  22. def await[T <: Awaitable[_]](awaitable: T): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  23. def beforePostWarmup(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer → App
    Annotations
    @Lifecycle()
  24. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def close(deadline: Time): Future[Unit]

    Permalink
    Definition Classes
    App → Closable
  26. def close(after: Duration): Future[Unit]

    Permalink
    Definition Classes
    Closable
  27. final def close(): Future[Unit]

    Permalink
    Definition Classes
    Closable
  28. def closeAwaitably(f: ⇒ Future[Unit]): Future[Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    CloseAwaitably0
  29. final def closeOnExit(closable: Closable): Unit

    Permalink
    Definition Classes
    App
  30. final def closeOnExitLast(closable: Closable): Unit

    Permalink
    Definition Classes
    App
  31. def configureAdminHttpServer(server: Server): Server

    Permalink
    Attributes
    protected
    Definition Classes
    AdminHttpServer
  32. def configureHttpServer(server: Server): Server

    Permalink

    This method allows for further configuration of the http server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,

    This method allows for further configuration of the http server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,

    override def configureHttpServer(server: Http.Server): Http.Server = { server .withResponseClassifier(...) .withMaxInitialLineSize(2048) }

    server

    - the com.twitter.finagle.Http.Server to configure.

    returns

    a configured Http.Server.

    Attributes
    protected
    Definition Classes
    BaseHttpServer
  33. def configureHttpsServer(server: Server): Server

    Permalink

    This method allows for further configuration of the https server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,

    This method allows for further configuration of the https server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,

    override def configureHttpsServer(server: Http.Server): Http.Server = { server .withResponseClassifier(...) .withMaxInitialLineSize(2048) }

    server

    - the com.twitter.finagle.Http.Server to configure.

    returns

    a configured Http.Server.

    Attributes
    protected
    Definition Classes
    BaseHttpServer
  34. def configureLoggerFactories(): Unit

    Permalink
    Definition Classes
    DeprecatedLogging → Logging
  35. def debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  36. def debug(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  37. def debug(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  38. def debug(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  39. def debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def debugResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  41. def defaultAdminPort: Int

    Permalink
    Definition Classes
    AdminHttpServer
  42. def defaultAppend: Boolean

    Permalink
    Definition Classes
    Logging
  43. def defaultCertificatePath: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  44. def defaultCloseGracePeriod: Duration

    Permalink
    Definition Classes
    App
  45. def defaultFinatraHttpPort: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  46. def defaultFormatter: Formatter

    Permalink
    Definition Classes
    Logging
  47. def defaultHttpAnnouncement: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  48. def defaultHttpServerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  49. def defaultHttpsAnnouncement: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  50. def defaultHttpsPort: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  51. def defaultHttpsServerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  52. def defaultKeyPath: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  53. def defaultLogLevel: Level

    Permalink
    Definition Classes
    Logging
  54. def defaultMaxRequestSize: StorageUnit

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  55. def defaultOutput: String

    Permalink
    Definition Classes
    Logging
  56. def defaultRollPolicy: Policy

    Permalink
    Definition Classes
    Logging
  57. def defaultRotateCount: Int

    Permalink
    Definition Classes
    Logging
  58. def defaultShutdownTimeout: Duration

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer
  59. def disableAdminHttpServer: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  60. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  62. def error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  63. def error(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  64. def error(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  65. def error(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  66. def errorResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  67. def exitOnError(reason: String, details: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  68. def exitOnError(reason: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  69. def exitOnError(throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  70. def failfastOnFlagsNotParsed: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer → App
  71. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  72. val flag: Flags

    Permalink
    Definition Classes
    App
  73. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  74. val group: String

    Permalink
    Definition Classes
    Lifecycle
  75. def handle[T <: Handler]()(implicit arg0: Manifest[T]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  76. def handlers: List[() ⇒ Handler]

    Permalink
    Definition Classes
    Logging
  77. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  78. def httpExternalPort: Option[Int]

    Permalink
    Definition Classes
    BaseHttpServer → Ports
  79. final def httpService: Service[Request, Response]

    Permalink
    Definition Classes
    HttpServer → BaseHttpServer
  80. def httpsExternalPort: Option[Int]

    Permalink
    Definition Classes
    BaseHttpServer → Ports
  81. val inferClassNamesFlag: Flag[Boolean]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  82. def info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  83. def info(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  84. def info(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  85. def info(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  86. def infoResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  87. final def init(f: ⇒ Unit): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  88. def injector: Injector

    Permalink
    Definition Classes
    App
  89. def isDebugEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  90. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  91. def isErrorEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  92. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  93. def isInfoEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  94. def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  95. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  96. def isReady(implicit permit: CanAwait): Boolean

    Permalink
    Definition Classes
    CloseAwaitably0 → Awaitable
  97. def isTraceEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  98. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  99. def isWarnEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  100. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  101. def jacksonModule: Module

    Permalink

    Default com.twitter.inject.TwitterModule for providing a com.twitter.finatra.json.FinatraObjectMapper.

  102. def javaModules: Collection[Module]

    Permalink
    Attributes
    protected
    Definition Classes
    App
  103. def javaOverrideModules: Collection[Module]

    Permalink
    Attributes
    protected
    Definition Classes
    App
  104. val levelFlag: Flag[Level]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  105. def libraryName: String

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer → AdminHttpServer
  106. def linterRules: Seq[Rule]

    Permalink
    Definition Classes
    Linters
  107. def loadModules(): InstalledModules

    Permalink
    Attributes
    protected[com.twitter.inject]
    Definition Classes
    App
  108. def loadServiceBindings: Seq[Binding[_]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    App
  109. def logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  110. def loggerFactories: List[LoggerFactory]

    Permalink
    Definition Classes
    Logging
  111. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  112. final def main(): Unit

    Permalink
    Definition Classes
    TwitterServer → App
  113. final def main(args: Array[String]): Unit

    Permalink
    Definition Classes
    App
  114. def messageBodyModule: Module

    Permalink

    Default com.twitter.inject.TwitterModule for providing implementations for a com.twitter.finatra.http.marshalling.DefaultMessageBodyReader and a com.twitter.finatra.http.marshalling.DefaultMessageBodyWriter.

  115. def modules: Seq[Module]

    Permalink
    Attributes
    protected
    Definition Classes
    App
  116. def mustacheModule: Module

    Permalink

    Default com.twitter.inject.TwitterModule for providing a com.github.mustachejava.MustacheFactory.

    Default com.twitter.inject.TwitterModule for providing a com.github.mustachejava.MustacheFactory.

    returns

    a com.twitter.inject.TwitterModule which provides a com.github.mustachejava.MustacheFactory implementation.

    Attributes
    protected
  117. val name: String

    Permalink
    Definition Classes
    App
  118. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  119. final def nonExitingMain(args: Array[String]): Unit

    Permalink
    Definition Classes
    App
  120. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  121. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  122. final def onExit(f: ⇒ Unit): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  123. val outputFlag: Flag[String]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  124. def overrideModules: Seq[Module]

    Permalink
    Attributes
    protected
    Definition Classes
    App
  125. def parseArgs(args: Array[String]): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    App
  126. def postInjectorStartup(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    HttpServer → TwitterServer → App
    Annotations
    @Lifecycle()
  127. def postWarmup(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BaseHttpServer → TwitterServer → App
    Annotations
    @Lifecycle()
  128. final def postmain(f: ⇒ Unit): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  129. def prebindWarmup(): Unit

    Permalink
    Definition Classes
    Warmup
  130. final def premain(f: ⇒ Unit): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    App
  131. def ready(timeout: Duration)(implicit permit: CanAwait): HttpServer.this.type

    Permalink
    Definition Classes
    CloseAwaitably0 → Awaitable
  132. def resolveFinagleClientsOnStartup: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  133. def result(timeout: Duration)(implicit permit: CanAwait): Unit

    Permalink
    Definition Classes
    CloseAwaitably0 → Awaitable
  134. val rollPolicyFlag: Flag[Policy]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  135. val rotateCountFlag: Flag[Int]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  136. def routes: Seq[Route]

    Permalink
    Attributes
    protected
    Definition Classes
    Admin
  137. final def run(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer → App
  138. def setup(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  139. lazy val shutdownTimer: Timer

    Permalink
    Attributes
    protected
    Definition Classes
    App
  140. def start(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  141. def statsReceiver: StatsReceiver

    Permalink
    Definition Classes
    Stats
  142. def statsReceiverModule: Module

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer
  143. def streamRequest: Boolean

    Permalink

    If false, the underlying Netty pipeline collects HttpChunks into the body of each Request Set to true if you wish to stream parse requests using request.reader.read

    If false, the underlying Netty pipeline collects HttpChunks into the body of each Request Set to true if you wish to stream parse requests using request.reader.read

    Attributes
    protected
    Definition Classes
    BaseHttpServer
  144. final def suppressGracefulShutdownErrors: Boolean

    Permalink
    Definition Classes
    TwitterServer → App
  145. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  146. def thriftPort: Option[Int]

    Permalink
    Definition Classes
    Ports
  147. def time[T](formatStr: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  148. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  149. def trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  150. def trace(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  151. def trace(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  152. def trace(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  153. def traceResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  154. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  155. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  156. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  157. def warmup(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    TwitterServer → App
  158. def warmupComplete(): Unit

    Permalink
    Definition Classes
    Warmup
  159. def warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  160. def warn(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  161. def warn(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  162. def warn(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  163. def warnResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging

Deprecated Value Members

  1. lazy val log: Logger

    Permalink
    Definition Classes
    DeprecatedLogging → Logging
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-10-06) For backwards compatibility only.

Inherited from BaseHttpServer

Inherited from TwitterServer

Inherited from Warmup

Inherited from Ports

Inherited from DeprecatedLogging

Inherited from Logging

Inherited from TwitterServer

Inherited from Stats

Inherited from Lifecycle

Inherited from Admin

Inherited from AdminHttpServer

Inherited from Hooks

Inherited from Linters

Inherited from Slf4jBridge

Inherited from App

Inherited from Logging

Inherited from Logging

Inherited from App

Inherited from CloseAwaitably

Inherited from CloseAwaitably0[Unit]

Inherited from Awaitable[Unit]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped