trait VertxServer extends ScalaVerticle
This is a Utility trait that simplifies the creation and management of a vertx server.
- Self Type
- VertxServer with Logging
- Alphabetic
- By Inheritance
- VertxServer
- ScalaVerticle
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
RichHttpRequest extends AnyRef
An implicit class to provide the HttpServerRequest with some more useful utilities.
Abstract Value Members
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava(): Verticle
- Definition Classes
- ScalaVerticle
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
config: JsonObject
- Definition Classes
- ScalaVerticle
-
var
ctx: Context
- Attributes
- protected
- Definition Classes
- ScalaVerticle
-
def
deploymentID: String
- Definition Classes
- ScalaVerticle
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
var
executionContext: VertxExecutionContext
- Attributes
- protected
- Definition Classes
- ScalaVerticle
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getRequestParameter(paramName: String)(implicit routingContext: RoutingContext): Option[String]
- routingContext
the routing context on which to extract
- returns
the extracted room name
- Attributes
- protected
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
init(vertx: Vertx, context: Context, verticle: AbstractVerticle): Unit
- Definition Classes
- ScalaVerticle
-
def
initServer: Future[_]
Initializes the server
Initializes the server
- returns
the future that completes when the server is initialized
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
processArgs: Buffer[String]
- Definition Classes
- ScalaVerticle
-
def
request(implicit routingContext: RoutingContext): HttpServerRequest
Utility method to obtain the request object
Utility method to obtain the request object
- routingContext
the implicit routing context
- returns
the request
- Attributes
- protected
-
def
response(implicit routingContext: RoutingContext): HttpServerResponse
Utility method to obtain the response object
Utility method to obtain the response object
- routingContext
the implicit routing context
- returns
the response
- Attributes
- protected
-
def
sendResponse(httpCode: Int, message: Option[String] = None)(implicit routingContext: RoutingContext): Unit
Utility method to send back responses
Utility method to send back responses
- httpCode
the http code
- message
the message to send back
- routingContext
the routing context in which to send the error
- Attributes
- protected
-
val
server: HttpServer
- Attributes
- protected
-
def
start(): Unit
- Definition Classes
- ScalaVerticle
-
def
startFuture(): Future[_]
- Definition Classes
- VertxServer → ScalaVerticle
-
def
stop(): Unit
- Definition Classes
- ScalaVerticle
-
def
stopFuture(): Future[_]
- Definition Classes
- ScalaVerticle
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
var
vertx: Vertx
- Attributes
- protected
- Definition Classes
- ScalaVerticle
-
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
- @native() @throws( ... )