Class

io.youi.server.handler

LanguageSupport

Related Doc: package handler

Permalink

class LanguageSupport extends HttpHandler

LanguageSupport adds simple multi-lingual support to HTML files

Language files must be defined either in the resources path, or in the files path. They may include country for greater control over the language information. The files must be structured like the following:

The file type may be: json, properties, yml, yaml, hocon, xml, conf, or config.

Linear Supertypes
HttpHandler, Ordered[HttpHandler], Comparable[HttpHandler], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LanguageSupport
  2. HttpHandler
  3. Ordered
  4. Comparable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LanguageSupport(default: Locale = Locale.ENGLISH)

    Permalink

    default

    the default locale to fall-back on

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <(that: HttpHandler): Boolean

    Permalink
    Definition Classes
    Ordered
  4. def <=(that: HttpHandler): Boolean

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: HttpHandler): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def >=(that: HttpHandler): Boolean

    Permalink
    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clear(): Unit

    Permalink

    Clears the configuration cache so it will reload on the next request

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compare(that: HttpHandler): Int

    Permalink
    Definition Classes
    HttpHandler → Ordered
  12. def compareTo(that: HttpHandler): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  13. val default: Locale

    Permalink

    the default locale to fall-back on

  14. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def handle(connection: HttpConnection): Future[HttpConnection]

    Permalink
    Definition Classes
    LanguageSupportHttpHandler
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def locales(connection: HttpConnection): (HttpConnection, List[String])

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  25. def priority: Priority

    Permalink
    Definition Classes
    LanguageSupportHttpHandler
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def translate(locales: List[String], html: String): String

    Permalink
  29. def translate(connection: HttpConnection, html: String): HttpConnection

    Permalink
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HttpHandler

Inherited from Ordered[HttpHandler]

Inherited from Comparable[HttpHandler]

Inherited from AnyRef

Inherited from Any

Ungrouped