public class ServiceRequest extends Object
Constructor and Description |
---|
ServiceRequest() |
ServiceRequest(JsonObject json) |
ServiceRequest(JsonObject params,
MultiMap headers,
JsonObject user,
JsonObject extra) |
ServiceRequest(ServiceRequest other) |
Modifier and Type | Method and Description |
---|---|
JsonObject |
getExtra()
Get extra payload
|
MultiMap |
getHeaders()
Get request headers
|
JsonObject |
getParams()
Get request parsedParameters as JSON
|
JsonObject |
getUser()
Get request principal user as routingContext.user().principal(), null if no user is authenticated
|
ServiceRequest |
setExtra(JsonObject extra) |
ServiceRequest |
setHeaders(MultiMap headers) |
ServiceRequest |
setParams(JsonObject params) |
ServiceRequest |
setUser(JsonObject user) |
JsonObject |
toJson() |
public ServiceRequest()
public ServiceRequest(JsonObject json)
public ServiceRequest(JsonObject params, MultiMap headers, JsonObject user, JsonObject extra)
public ServiceRequest(ServiceRequest other)
public JsonObject toJson()
public JsonObject getParams()
public MultiMap getHeaders()
public JsonObject getUser()
public JsonObject getExtra()
public ServiceRequest setParams(JsonObject params)
public ServiceRequest setHeaders(MultiMap headers)
public ServiceRequest setUser(JsonObject user)
public ServiceRequest setExtra(JsonObject extra)
Copyright © 2022 Eclipse. All rights reserved.