public class InterceptableRoutingContext extends Object implements io.vertx.ext.web.RoutingContext
| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.ext.web.RoutingContext |
inner |
| Constructor and Description |
|---|
InterceptableRoutingContext(io.vertx.ext.web.RoutingContext inner) |
| Modifier and Type | Method and Description |
|---|---|
List<io.vertx.ext.web.LanguageHeader> |
acceptableLanguages() |
List<io.vertx.ext.web.Locale> |
acceptableLocales()
Deprecated.
(depends on Eclipse/Vert.X)
|
int |
addBodyEndHandler(io.vertx.core.Handler<Void> handler) |
io.vertx.ext.web.RoutingContext |
addCookie(io.vertx.ext.web.Cookie cookie) |
int |
addHeadersEndHandler(io.vertx.core.Handler<Void> handler) |
void |
clearUser() |
int |
cookieCount() |
Set<io.vertx.ext.web.Cookie> |
cookies() |
io.vertx.ext.web.Route |
currentRoute() |
Map<String,Object> |
data() |
void |
fail(int statusCode) |
void |
fail(Throwable throwable) |
boolean |
failed() |
Throwable |
failure() |
Set<io.vertx.ext.web.FileUpload> |
fileUploads() |
<T> T |
get(String key) |
String |
getAcceptableContentType() |
io.vertx.core.buffer.Buffer |
getBody() |
io.vertx.core.json.JsonObject |
getBodyAsJson() |
io.vertx.core.json.JsonArray |
getBodyAsJsonArray() |
String |
getBodyAsString() |
String |
getBodyAsString(String encoding) |
io.vertx.ext.web.Cookie |
getCookie(String name) |
String |
mountPoint() |
void |
next() |
String |
normalisedPath() |
io.vertx.ext.web.ParsedHeaderValues |
parsedHeaders() |
String |
pathParam(String name) |
Map<String,String> |
pathParams() |
io.vertx.ext.web.LanguageHeader |
preferredLanguage() |
io.vertx.ext.web.Locale |
preferredLocale()
Deprecated.
(depends on Eclipse/Vert.X)
|
io.vertx.ext.web.RoutingContext |
put(String key,
Object obj) |
List<String> |
queryParam(String s) |
io.vertx.core.MultiMap |
queryParams() |
<T> T |
remove(String key) |
boolean |
removeBodyEndHandler(int handlerID) |
io.vertx.ext.web.Cookie |
removeCookie(String name) |
boolean |
removeHeadersEndHandler(int handlerID) |
io.vertx.core.http.HttpServerRequest |
request() |
void |
reroute(io.vertx.core.http.HttpMethod method,
String path) |
void |
reroute(String path) |
io.vertx.core.http.HttpServerResponse |
response() |
io.vertx.ext.web.Session |
session() |
void |
setAcceptableContentType(String contentType) |
void |
setBody(io.vertx.core.buffer.Buffer body) |
void |
setFailedCallback(Runnable failedCallback) |
void |
setNextCallback(Runnable nextCallback) |
void |
setSession(io.vertx.ext.web.Session session) |
void |
setUser(io.vertx.ext.auth.User user) |
int |
statusCode() |
io.vertx.ext.auth.User |
user() |
io.vertx.core.Vertx |
vertx() |
public InterceptableRoutingContext(io.vertx.ext.web.RoutingContext inner)
public void setFailedCallback(Runnable failedCallback)
public void setNextCallback(Runnable nextCallback)
public io.vertx.core.http.HttpServerRequest request()
request in interface io.vertx.ext.web.RoutingContextpublic io.vertx.core.http.HttpServerResponse response()
response in interface io.vertx.ext.web.RoutingContextpublic void fail(int statusCode)
fail in interface io.vertx.ext.web.RoutingContextpublic void fail(Throwable throwable)
fail in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.RoutingContext put(String key, Object obj)
put in interface io.vertx.ext.web.RoutingContextpublic <T> T get(String key)
get in interface io.vertx.ext.web.RoutingContextpublic <T> T remove(String key)
remove in interface io.vertx.ext.web.RoutingContextpublic Map<String,Object> data()
data in interface io.vertx.ext.web.RoutingContextpublic io.vertx.core.Vertx vertx()
vertx in interface io.vertx.ext.web.RoutingContextpublic int addHeadersEndHandler(io.vertx.core.Handler<Void> handler)
addHeadersEndHandler in interface io.vertx.ext.web.RoutingContextpublic boolean removeHeadersEndHandler(int handlerID)
removeHeadersEndHandler in interface io.vertx.ext.web.RoutingContextpublic int addBodyEndHandler(io.vertx.core.Handler<Void> handler)
addBodyEndHandler in interface io.vertx.ext.web.RoutingContextpublic boolean removeBodyEndHandler(int handlerID)
removeBodyEndHandler in interface io.vertx.ext.web.RoutingContextpublic void setSession(io.vertx.ext.web.Session session)
setSession in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.Session session()
session in interface io.vertx.ext.web.RoutingContextpublic void setUser(io.vertx.ext.auth.User user)
setUser in interface io.vertx.ext.web.RoutingContextpublic void clearUser()
clearUser in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.auth.User user()
user in interface io.vertx.ext.web.RoutingContextpublic void next()
next in interface io.vertx.ext.web.RoutingContextpublic boolean failed()
failed in interface io.vertx.ext.web.RoutingContextpublic Throwable failure()
failure in interface io.vertx.ext.web.RoutingContextpublic int statusCode()
statusCode in interface io.vertx.ext.web.RoutingContextpublic String mountPoint()
mountPoint in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.Route currentRoute()
currentRoute in interface io.vertx.ext.web.RoutingContextpublic String normalisedPath()
normalisedPath in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.Cookie getCookie(String name)
getCookie in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.RoutingContext addCookie(io.vertx.ext.web.Cookie cookie)
addCookie in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.Cookie removeCookie(String name)
removeCookie in interface io.vertx.ext.web.RoutingContextpublic int cookieCount()
cookieCount in interface io.vertx.ext.web.RoutingContextpublic Set<io.vertx.ext.web.Cookie> cookies()
cookies in interface io.vertx.ext.web.RoutingContextpublic String getBodyAsString()
getBodyAsString in interface io.vertx.ext.web.RoutingContextpublic String getBodyAsString(String encoding)
getBodyAsString in interface io.vertx.ext.web.RoutingContextpublic io.vertx.core.json.JsonObject getBodyAsJson()
getBodyAsJson in interface io.vertx.ext.web.RoutingContextpublic io.vertx.core.json.JsonArray getBodyAsJsonArray()
getBodyAsJsonArray in interface io.vertx.ext.web.RoutingContextpublic io.vertx.core.buffer.Buffer getBody()
getBody in interface io.vertx.ext.web.RoutingContextpublic void setBody(io.vertx.core.buffer.Buffer body)
setBody in interface io.vertx.ext.web.RoutingContextpublic Set<io.vertx.ext.web.FileUpload> fileUploads()
fileUploads in interface io.vertx.ext.web.RoutingContextpublic String getAcceptableContentType()
getAcceptableContentType in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.ParsedHeaderValues parsedHeaders()
parsedHeaders in interface io.vertx.ext.web.RoutingContextpublic void setAcceptableContentType(String contentType)
setAcceptableContentType in interface io.vertx.ext.web.RoutingContextpublic void reroute(String path)
reroute in interface io.vertx.ext.web.RoutingContextpublic void reroute(io.vertx.core.http.HttpMethod method,
String path)
reroute in interface io.vertx.ext.web.RoutingContext@Deprecated public List<io.vertx.ext.web.Locale> acceptableLocales()
acceptableLocales in interface io.vertx.ext.web.RoutingContextpublic List<io.vertx.ext.web.LanguageHeader> acceptableLanguages()
acceptableLanguages in interface io.vertx.ext.web.RoutingContext@Deprecated public io.vertx.ext.web.Locale preferredLocale()
preferredLocale in interface io.vertx.ext.web.RoutingContextpublic io.vertx.ext.web.LanguageHeader preferredLanguage()
preferredLanguage in interface io.vertx.ext.web.RoutingContextpublic Map<String,String> pathParams()
pathParams in interface io.vertx.ext.web.RoutingContextpublic String pathParam(String name)
pathParam in interface io.vertx.ext.web.RoutingContextpublic io.vertx.core.MultiMap queryParams()
queryParams in interface io.vertx.ext.web.RoutingContextCopyright © 2018. All rights reserved.