class Server extends TiscafServerImplementation with Logger
- Alphabetic
- By Inheritance
- Server
- Logger
- TiscafServerImplementation
- ServerImplementation
- HServer
- HLoggable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Server(port: Int, host: String, controller: Controller)
Type Members
-
class
RequestHandler extends HApp
- Attributes
- protected
- Definition Classes
- TiscafServerImplementation
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apps: List[RequestHandler]
Returns the list of available applications.
Returns the list of available applications.
- Attributes
- protected
- Definition Classes
- TiscafServerImplementation → HServer
- See also
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bindHost: String
The host the server binds to
The host the server binds to
- Definition Classes
- TiscafServerImplementation → HServer
-
def
bufferSize: Int
Returns the NIO buffer size.
Returns the NIO buffer size.
- Definition Classes
- HServer
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
connectionTimeoutSeconds: Int
Returns the connection timeout.
Returns the connection timeout. It has to purposes:
- a connection without any socket activity during this period will be closed
- if you use (and client wants) 'keep-alive' connection, this period is declared in response header
- Definition Classes
- TiscafServerImplementation → HServer
-
def
defaultHeaders: Map[String, String]
The list of defaults headers that are set by the server for each request.
The list of defaults headers that are set by the server for each request. Each let may override (or remove) them later
- Definition Classes
- HServer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(msg: String, t: Throwable): Unit
Called to log a tiscaf internal error.
Called to log a tiscaf internal error. Note: This methods is not intended to be called by applications using tiscaf. Override it to log using your favorite logging library. By default, logs the message and the stack trace to stderr.
- Definition Classes
- TiscafServerImplementation → HServer → HLoggable
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handleError(t: Throwable): Unit
handle a fatal error in the underlying implementation
handle a fatal error in the underlying implementation
- Definition Classes
- Server → ServerImplementation
-
def
handleMessage(s: String): Unit
handle a log message by the underlying server
handle a log message by the underlying server
- Definition Classes
- Server → ServerImplementation
-
def
handleRequest(request: ServerRequest): ServerResponse
handle a single request in a safe way
handle a single request in a safe way
- Definition Classes
- Server → ServerImplementation
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val host: String
-
def
info(msg: String): Unit
Called to log a tiscaf internal information.
Called to log a tiscaf internal information. Note: This methods is not intended to be called by applications using tiscaf. Override it to log using your favorite logging library. By default, logs the message to stdout.
- Definition Classes
- TiscafServerImplementation → HServer → HLoggable
-
def
interruptTimeoutMillis: Int
Returns the time a shutdown process let the HLets a chance to finish properly.
Returns the time a shutdown process let the HLets a chance to finish properly.
- Definition Classes
- HServer
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
listenAddress: String
the address this server should listen to
the address this server should listen to
- Definition Classes
- Server → ServerImplementation
-
val
listenPort: Int
the port this server should listen to
the port this server should listen to
- Definition Classes
- Server → ServerImplementation
-
def
log(e: Error): Unit
logs an error - always logged
logs an error - always logged
- Attributes
- protected
- Definition Classes
- Logger
-
def
log(s: ⇒ String, subgroup: Option[String] = None): Unit
logs a message with this logger's logprefix
logs a message with this logger's logprefix
- Attributes
- protected
- Definition Classes
- Logger
-
def
logError(s: ⇒ String): Unit
log as an error message
log as an error message
- Attributes
- protected
- Definition Classes
- Logger
-
def
logGroup[A](a: ⇒ A): A
wraps around a group to create nested logging
wraps around a group to create nested logging
- Attributes
- protected
- Definition Classes
- Logger
-
val
logInternals: Boolean
Sets it to true to have internal information from tiscaf logged
Sets it to true to have internal information from tiscaf logged
- Attributes
- protected
- Definition Classes
- TiscafServerImplementation → HServer
- val logPrefix: String
-
def
logTemp(s: ⇒ String): Unit
temporary logging - always logged
temporary logging - always logged
- Attributes
- protected
- Definition Classes
- Logger
-
def
maxPostDataLength: Int
Returns the maximum upload size allowed.
Returns the maximum upload size allowed.
- Attributes
- protected
- Definition Classes
- HServer
-
def
name: String
Returns the server name, used in response headers.
Returns the server name, used in response headers.
- Definition Classes
- TiscafServerImplementation → HServer
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onStart(): Unit
Executed at the end of the server is started
Executed at the end of the server is started
- Attributes
- protected
- Definition Classes
- HServer
-
def
onStop(): Unit
Executed before the server is stopped
Executed before the server is stopped
- Attributes
- protected
- Definition Classes
- HServer
-
def
poolSize: Int
Returns the executor pool size.
Returns the executor pool size.
- Attributes
- protected
- Definition Classes
- HServer
- val port: Int
-
def
ports: Set[Int]
Returns the list of ports, the server listens to.
Returns the list of ports, the server listens to.
- Attributes
- protected
- Definition Classes
- TiscafServerImplementation → HServer
-
def
queueSize: Int
Returns the executor queue size.
Returns the executor queue size.
- Attributes
- protected
- Definition Classes
- HServer
- val report: Report
-
val
serverName: String
the name of this server
the name of this server
- Definition Classes
- Server → ServerImplementation
-
def
ssl: List[HSslContext]
Returns the SSL settings if any.
Returns the SSL settings if any.
- Definition Classes
- HServer
-
def
start: Unit
Starts the server.
Starts the server.
- Definition Classes
- HServer
-
def
startStopListener: Unit
Starts the stop listener.
Starts the stop listener. Override if you want more elaborated shutdown procedure (and replace tiscaf.HStop)
- Definition Classes
- TiscafServerImplementation → HServer
-
def
stop: Unit
stop the server; for some reason this throws IOException which we catch here
stop the server; for some reason this throws IOException which we catch here
- Definition Classes
- TiscafServerImplementation → HServer
-
def
stopHost: String
Returns the host to listen to for stop message.
Returns the host to listen to for stop message.
- Definition Classes
- HServer
-
def
stopPort: Int
Returns the port number listened to for a stop message.
Returns the port number listened to for a stop message.
- Definition Classes
- HServer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tcpNoDelay: Boolean
- Definition Classes
- TiscafServerImplementation → HServer
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
warning(msg: String): Unit
Called to log a tiscaf internal warning.
Called to log a tiscaf internal warning. Note: This methods is not intended to be called by applications using tiscaf. Override it to log using your favorite logging library. By default, logs the message to stdout.
- Definition Classes
- TiscafServerImplementation → HServer → HLoggable