public final class QueryParamMapping extends Object
TokenHandler.header(Map, String) to create a new header for
the extracted parameter.| Modifier and Type | Method and Description |
|---|---|
static QueryParamMapping |
create(Config config)
Read a new instance from configuration.
|
static QueryParamMapping |
create(String queryParamName,
String headerName)
Create a new mapping for a query parameter and a header name.
|
static QueryParamMapping |
create(String queryParamName,
TokenHandler tokenHandler)
Create a new mapping for a query parameter and
TokenHandler to extract
the parameter and store it as a new header with possible transformation. |
String |
queryParamName()
Name of the query parameter to map.
|
TokenHandler |
tokenHandler()
Token handler used to create a header from the parameter.
|
public static QueryParamMapping create(String queryParamName, TokenHandler tokenHandler)
TokenHandler to extract
the parameter and store it as a new header with possible transformation.queryParamName - name of parametertokenHandler - handler to extract and store the header valuepublic static QueryParamMapping create(String queryParamName, String headerName)
queryParamName - name of parameterheaderName - name of a header to store the value of the parameter inpublic static QueryParamMapping create(Config config)
"name" and configuration for TokenHandlerconfig - configuration instancepublic String queryParamName()
public TokenHandler tokenHandler()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.