trait TiscafServerImplementation extends HServer with ServerImplementation
Implements an HTTP Server using Tiscaf
- Alphabetic
- By Inheritance
- TiscafServerImplementation
- ServerImplementation
- HServer
- HLoggable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
RequestHandler extends HApp
- Attributes
- protected
Abstract Value Members
-
abstract
def
handleError(e: Throwable): Unit
handle a fatal error in the underlying implementation
handle a fatal error in the underlying implementation
- Definition Classes
- ServerImplementation
-
abstract
def
handleMessage(s: String): Unit
handle a log message by the underlying server
handle a log message by the underlying server
- Definition Classes
- ServerImplementation
-
abstract
def
handleRequest(request: ServerRequest): ServerResponse
handle a request sent to the server
handle a request sent to the server
- Definition Classes
- ServerImplementation
-
abstract
val
listenAddress: String
the address this server should listen to
the address this server should listen to
- Definition Classes
- ServerImplementation
-
abstract
val
listenPort: Int
the port this server should listen to
the port this server should listen to
- Definition Classes
- ServerImplementation
-
abstract
val
serverName: String
the name of this server
the name of this server
- Definition Classes
- ServerImplementation
Concrete 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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
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
-
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
-
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
-
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