A VirtualHost configuration

Introduced properties

init defaultinit(interfaces: String...)

nitcorn :: VirtualHost :: defaultinit

Create a virtual host from interfaces as strings
fun interfaces: Interfaces

nitcorn :: VirtualHost :: interfaces

Interfaces on which self is active
protected fun interfaces=(interfaces: Interfaces)

nitcorn :: VirtualHost :: interfaces=

Interfaces on which self is active
fun routes: Routes

nitcorn :: VirtualHost :: routes

Routes and thus Actions active on self
protected fun routes=(routes: Routes)

nitcorn :: VirtualHost :: routes=

Routes and thus Actions active on self
fun server_config: nullable ServerConfig

nitcorn :: VirtualHost :: server_config

Back reference to the associated server configuration
protected fun server_config=(server_config: nullable ServerConfig)

nitcorn :: VirtualHost :: server_config=

Back reference to the associated server configuration

Redefined properties

redef type SELF: VirtualHost

nitcorn $ VirtualHost :: SELF

Type of this instance, automatically specialized in every class

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
init defaultinit(interfaces: String...)

nitcorn :: VirtualHost :: defaultinit

Create a virtual host from interfaces as strings
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
fun interfaces: Interfaces

nitcorn :: VirtualHost :: interfaces

Interfaces on which self is active
protected fun interfaces=(interfaces: Interfaces)

nitcorn :: VirtualHost :: interfaces=

Interfaces on which self is active
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun routes: Routes

nitcorn :: VirtualHost :: routes

Routes and thus Actions active on self
protected fun routes=(routes: Routes)

nitcorn :: VirtualHost :: routes=

Routes and thus Actions active on self
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
fun server_config: nullable ServerConfig

nitcorn :: VirtualHost :: server_config

Back reference to the associated server configuration
protected fun server_config=(server_config: nullable ServerConfig)

nitcorn :: VirtualHost :: server_config=

Back reference to the associated server configuration
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
package_diagram nitcorn::VirtualHost VirtualHost core::Object Object nitcorn::VirtualHost->core::Object

Parents

interface Object

core :: Object

The root of the class hierarchy.

Class definitions

nitcorn $ VirtualHost
# A `VirtualHost` configuration
class VirtualHost
	# Back reference to the associated server configuration
	var server_config: nullable ServerConfig = null

	# Interfaces on which `self` is active
	var interfaces = new Interfaces(self)

	# Routes and thus `Action`s active on `self`
	var routes = new Routes(self)

	# Create a virtual host from interfaces as strings
	init(interfaces: String ...) is old_style_init do
		for i in interfaces do self.interfaces.add_from_string i
	end
end
lib/nitcorn/server_config.nit:31,1--46,3