Class RequestUtils
java.lang.Object
io.gravitee.am.service.utils.vertx.RequestUtils
- Author:
- Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.vertx.rxjava3.core.MultiMapcleanParams(io.vertx.rxjava3.core.MultiMap params) static io.vertx.rxjava3.core.MultiMapgetCleanedQueryParams(io.vertx.rxjava3.core.http.HttpServerRequest httpServerRequest) Same asgetQueryParams(HttpServerRequest)but removes some query parameters used internally (eg: error, error_description, success, ...).static io.vertx.rxjava3.core.MultiMapSame asgetQueryParams(HttpServerRequest)but removes some query parameters used internally (eg: error, error_description, success, ...).static Stringstatic io.vertx.rxjava3.core.MultiMapgetQueryParams(io.vertx.rxjava3.core.http.HttpServerRequest httpServerRequest) Extract query parameters from request as aMultiMapstatic io.vertx.rxjava3.core.MultiMapgetQueryParams(String url) Same asgetQueryParams(HttpServerRequest)but taking a complete url.static io.vertx.rxjava3.core.MultiMapgetQueryParams(String queryString, boolean hasPath) Same asgetQueryParams(HttpServerRequest)but taking an url or only the query string part (eg:hasPath).static Stringstatic StringremoteAddress(io.vertx.core.http.HttpServerRequest httpServerRequest) static StringremoteAddress(io.vertx.rxjava3.core.http.HttpServerRequest httpServerRequest) static StringuserAgent(io.vertx.core.http.HttpServerRequest httpServerRequest) static StringuserAgent(io.vertx.rxjava3.core.http.HttpServerRequest httpServerRequest)
-
Constructor Details
-
RequestUtils
public RequestUtils()
-
-
Method Details
-
remoteAddress
-
userAgent
-
remoteAddress
-
userAgent
-
getQueryParams
public static io.vertx.rxjava3.core.MultiMap getQueryParams(io.vertx.rxjava3.core.http.HttpServerRequest httpServerRequest) Extract query parameters from request as aMultiMap- Parameters:
httpServerRequest- the request from which extract the query parameters.- Returns:
- all query parameters as a
MultiMap.
-
getCleanedQueryParams
public static io.vertx.rxjava3.core.MultiMap getCleanedQueryParams(io.vertx.rxjava3.core.http.HttpServerRequest httpServerRequest) Same asgetQueryParams(HttpServerRequest)but removes some query parameters used internally (eg: error, error_description, success, ...).- Parameters:
httpServerRequest- the request from which extract the query parameters.- Returns:
- all cleaned query parameters as a
MultiMap.
-
getCleanedQueryParams
Same asgetQueryParams(HttpServerRequest)but removes some query parameters used internally (eg: error, error_description, success, ...).- Parameters:
uri- the request uri from which extract the query parameters.- Returns:
- all cleaned query parameters as a
MultiMap.
-
cleanParams
public static io.vertx.rxjava3.core.MultiMap cleanParams(io.vertx.rxjava3.core.MultiMap params) -
getQueryParams
Same asgetQueryParams(HttpServerRequest)but taking a complete url.- Parameters:
url- the url from which extract the query parameters.- Returns:
- all query parameters as a
MultiMap.
-
getQueryParams
Same asgetQueryParams(HttpServerRequest)but taking an url or only the query string part (eg:hasPath).- Parameters:
queryString- the url from which extract the query parameters.hasPath- flag indicating if thequeryStringis a complete url or is just the query string part.- Returns:
- all query parameters as a
MultiMap.
-
getDomain
-
getUrlWithoutParameters
-