Contents
-
Deprecated Methods
patterns should use the relative origin method. Create a CORS handler using a regular expression to match origins. An origin follows rfc6454#section-7 and is expected to have the format: <scheme> "://" <hostname> [ ":" <port> ]
mount the router as a sub-router instead. This method will not properly handle errors.
This method duplicates the sub router functionality from
Route.subRouter(Router). Mount a sub router on this router
Use
invalid reference
HttpServerResponse#addCookie(Cookie)
Add a cookie. This will be sent back to the client in the response.
Use
invalid reference
HttpServerRequest#cookieCount()
Use
invalid reference
HttpServerRequest#cookieMap()
Use
RoutingContext.body() instead. Gets the current body buffer as a
JsonObject. If a positive limit is provided the parsing will only happen if the buffer length is smaller or equal to the limit. Otherwise an
IllegalStateException is thrown. When the application is only handling uploads in JSON format, it is recommended to set a limit on
BodyHandler.setBodyLimit(long) as this will avoid the upload to be parsed and loaded into the application memory.
Use
RoutingContext.body() instead. Gets the current body buffer as a
JsonArray. If a positive limit is provided the parsing will only happen if the buffer length is smaller or equal to the limit. Otherwise an
IllegalStateException is thrown. When the application is only handling uploads in JSON format, it is recommended to set a limit on
BodyHandler.setBodyLimit(long) as this will avoid the upload to be parsed and loaded into the application memory.
Use
RoutingContext.body() instead. Get the entire HTTP request body as a string, assuming the specified encoding. The context must have first been routed to a
BodyHandler for this to be populated.
Use
invalid reference
HttpServerRequest#getCookie(String)
Get the cookie with the specified name.
Use
invalid reference
HttpServerResponse#removeCookie(String)
Expire a cookie, notifying a User Agent to remove it from its cookie jar.
Use
invalid reference
HttpServerResponse#removeCookie(String, boolean)
Remove a cookie from the cookie set. If invalidate is true then it will expire a cookie, notifying a User Agent to remove it from its cookie jar.
This method is internal. Users that really need to use it should refer to RoutingContextInternal.setBody(Buffer) Set the body. Used by the BodyHandler. You will not normally call this method.
This method is internal. Users that really need to use it should refer to
invalid reference
io.vertx.ext.web.impl.RoutingContextInternal#setSession(Session)
Set the session. Used by the
SessionHandler. You will not normally call this method.
this method should not be called, application authentication should rely on AuthenticationHandler implementations.