java.lang.Object
io.helidon.security.QueryParamMapping
Definition of a map to bind a query param to a header.
Uses the
TokenHandler.header(Map, String)
to create a new header for
the extracted parameter.-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryParamMapping
Read a new instance from configuration.static QueryParamMapping
create
(String queryParamName, TokenHandler tokenHandler) Create a new mapping for a query parameter andTokenHandler
to extract the parameter and store it as a new header with possible transformation.static QueryParamMapping
Create a new mapping for a query parameter and a header name.Name of the query parameter to map.Token handler used to create a header from the parameter.
-
Method Details
-
create
Create a new mapping for a query parameter andTokenHandler
to extract the parameter and store it as a new header with possible transformation.- Parameters:
queryParamName
- name of parametertokenHandler
- handler to extract and store the header value- Returns:
- a new mapping
-
create
Create a new mapping for a query parameter and a header name.- Parameters:
queryParamName
- name of parameterheaderName
- name of a header to store the value of the parameter in- Returns:
- a new mapping
-
create
Read a new instance from configuration. The current node should contain a"name"
and configuration forTokenHandler
- Parameters:
config
- configuration instance- Returns:
- new query parameter handler instance
-
queryParamName
Name of the query parameter to map.- Returns:
- parameter name
-
tokenHandler
Token handler used to create a header from the parameter.- Returns:
- header token handler
-