Package com.elepy.vertx
Class VertxService
- java.lang.Object
-
- com.elepy.vertx.VertxService
-
- All Implemented Interfaces:
HttpService
public class VertxService extends Object implements HttpService
-
-
Constructor Summary
Constructors Constructor Description VertxService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRoute(Route route)voidafter(HttpContextHandler contextHandler)voidafter(String path, HttpContextHandler contextHandler)voidbefore(HttpContextHandler contextHandler)voidbefore(String path, HttpContextHandler contextHandler)<T extends Exception>
voidexception(Class<T> exceptionClass, ExceptionHandler<? super T> handler)ExceptionHandlergetExceptionHandler(Class<? extends Exception> exceptionClass)voidignite()intport()voidport(int port)voidstaticFiles(String path, StaticFileLocation location)voidstop()
-
-
-
Method Detail
-
port
public void port(int port)
- Specified by:
portin interfaceHttpService
-
port
public int port()
- Specified by:
portin interfaceHttpService
-
stop
public void stop()
- Specified by:
stopin interfaceHttpService
-
staticFiles
public void staticFiles(String path, StaticFileLocation location)
- Specified by:
staticFilesin interfaceHttpService
-
exception
public <T extends Exception> void exception(Class<T> exceptionClass, ExceptionHandler<? super T> handler)
- Specified by:
exceptionin interfaceHttpService
-
before
public void before(HttpContextHandler contextHandler)
- Specified by:
beforein interfaceHttpService
-
before
public void before(String path, HttpContextHandler contextHandler)
- Specified by:
beforein interfaceHttpService
-
after
public void after(String path, HttpContextHandler contextHandler)
- Specified by:
afterin interfaceHttpService
-
after
public void after(HttpContextHandler contextHandler)
- Specified by:
afterin interfaceHttpService
-
addRoute
public void addRoute(Route route)
- Specified by:
addRoutein interfaceHttpService
-
ignite
public void ignite()
- Specified by:
ignitein interfaceHttpService
-
getExceptionHandler
public ExceptionHandler getExceptionHandler(Class<? extends Exception> exceptionClass)
-
-