xplo.re Medusa Core Framework 3.2
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
      • Driver
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Fault
      • Formatter
        • Driver
      • Incident
        • Exception
      • Reporter
        • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • Type
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • Authentication
  • Authentication_Token
  • AutoLoader
  • Cache
  • Charset
  • ClassDescriptor
  • Closure
  • Configuration
  • Controller
  • Converter
  • Date
  • Decoder
  • Delegate
  • Dispatcher
  • Encoder
  • Env
  • Env_Field
  • Env_File
  • Env_FileList
  • Env_Request
  • Env_SERVER
  • Exchange
  • Fault
  • Field
  • Filter
  • Filter_Value
  • Formatter
  • Hash
  • IP
  • Loader
  • Locale
  • Locale_Node
  • Log
  • Module
  • Module_Iterator
  • Nothing
  • Object
  • OS
  • Plugin
  • Profiler
  • Query
  • Registry
  • Resource
  • Server
  • Session
  • Session_Token
  • Set
  • Storage
  • Storage_Result
  • Storage_Statement
  • Stream
  • Translation
  • URI
  • URI_Parameters
  • UUID
  • Value
  • Version
  • View

Interfaces

  • Accessor
  • Chainable
  • Comparable
  • Configurable
  • Equality
  • Identity
  • Inquiry
  • Masquerade
  • Mutator
  • SeekableStream
  • Storable
  • Variator

Exceptions

  • Exception

Constants

  • Copyright
  • ProductName
  • Version

Class Server

A server offers services via a single connection method. If multiple connection methods (such as multiple ports) are offered, each is represented by an own server instance.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Server

Direct known subclasses

Core\Server\Driver\web

Abstract
Namespace: Core
Package: Core
Since: 3.2
Requires: PHP 5.3
Version: 1.0
Located at Server.inc.php

Methods summary

protected
# __construct( Core\URI $uri )

Initialises a new server instance.

Initialises a new server instance.

Parameters

$uri
Server driver description Core\URI.

Since

3.2
public static Core\Server
# autocreate( Core\URI $uri )

Server factory.

Server factory.

Parameters

$uri
Server driver description Core\URI.

Returns

Core\Server
New server instance based on given driver description Core\URI.

Throws

Core\Exception\InvalidDriver
The driver as specified by the Core\URI scheme cannot be found.

Since

3.2
abstract public string|null
# hostname( )

Returns the server hostname as seen by the client.

Returns the server hostname as seen by the client.

In a web context, this is the hostname of the original request from the original client, approximated from available headers if the client is behind a proxy or load balancer.

Returns

string|null
Server hostname or null, if the server does not have a hostname.

Since

3.2
abstract public integer|null
# port( )

Returns the server port number as seen by the client.

Returns the server port number as seen by the client.

In a web context, this is the port of the original request from the original client, approximated from available headers if the client is behind a proxy or load balancer.

Returns

integer|null
Server port number or null, if the server does not use any port.

Since

3.2
public static Core\Server
# webInstance( )

Returns the server instance that represents the web server and current request if used in a web-related context.

Returns the server instance that represents the web server and current request if used in a web-related context.

Returns

Core\Server

Since

3.2

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected Core\URI $_v_uri

Server driver description Core\URI.

Server driver description Core\URI.

Since

3.2
#

Magic properties

public read-only string|null $hostname

Server hostname or null, if the server does not have a hostname.

public read-only integer|null $port

Server port number or null, if the server does not use any port.

public read-only Core\URI $uri

Server driver description Core\URI.

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.2 API documentation generated by ApiGen