Package org.swisspush.gateleen.core.util
Class RoleExtractor
- java.lang.Object
-
- org.swisspush.gateleen.core.util.RoleExtractor
-
public class RoleExtractor extends java.lang.ObjectContains functions for request handling.- Author:
- https://github.com/floriankammermann [Florian Kammermann]
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringgroupHeaderstatic java.lang.StringroleHeader
-
Constructor Summary
Constructors Constructor Description RoleExtractor()RoleExtractor(java.lang.String rolePattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>extractRoles(io.vertx.core.http.HttpServerRequest request)Extract the roles from the request.java.util.Set<java.lang.String>extractRoles(io.vertx.core.MultiMap headers)Extract the roles from the given http header
-
-
-
Field Detail
-
groupHeader
public static final java.lang.String groupHeader
- See Also:
- Constant Field Values
-
roleHeader
public static final java.lang.String roleHeader
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractRoles
public java.util.Set<java.lang.String> extractRoles(io.vertx.core.http.HttpServerRequest request)
Extract the roles from the request.- Parameters:
request- the request- Returns:
- the role set or null if no role information was found.
-
extractRoles
public java.util.Set<java.lang.String> extractRoles(io.vertx.core.MultiMap headers)
Extract the roles from the given http header- Parameters:
headers- the request/response headers to analyse- Returns:
- the role set or null if no role information was found.
-
-