Class RestListener
java.lang.Object
com.codingchili.core.listener.transport.RestListener
- All Implemented Interfaces:
CoreDeployment
,CoreListener
HTTP/REST transport listener.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandler(CoreHandler handler)
void
init(CoreContext core)
Init method that is called with the context that the service was deployed from.io.vertx.core.Future<io.vertx.ext.web.Router>
router()
settings(ListenerSettings settings)
void
void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.codingchili.core.listener.CoreListener
name
-
Constructor Details
-
RestListener
public RestListener()
-
-
Method Details
-
init
Description copied from interface:CoreDeployment
Init method that is called with the context that the service was deployed from.- Specified by:
init
in interfaceCoreDeployment
- Parameters:
core
- the core context to use.
-
router
public io.vertx.core.Future<io.vertx.ext.web.Router> router()- Returns:
- exposes the router object for further configuration, manual route setups, fallbacks and support for adding a static handler.
-
settings
- Specified by:
settings
in interfaceCoreListener
- Parameters:
settings
- listener settings for the listener.- Returns:
- fluent
-
handler
- Specified by:
handler
in interfaceCoreListener
- Parameters:
handler
- the handler to invoke when the listener is triggered the handler must be initialized with the current context by the implementing class.- Returns:
- fluent
-
start
- Specified by:
start
in interfaceCoreDeployment
- Parameters:
start
- complete when asynchronous startup is completed.
-
stop
- Specified by:
stop
in interfaceCoreDeployment
- Parameters:
stop
- complete when asynchronous shutdown is completed.
-
toString
-