Picks up custom HTTP headers to add to all requests from system properties, which should be named as
soapui.http.custom.header.<headerName>=<headerValue> The list and values of headers will be cached unless the system property soapui.http.custom.headers.cache=false By default header values are added to existing header values - if you want to replace existing headers add soapui.http.custom.headers.replace=true instead The values are PropertyExpanded each time before getting added to the request. Since header names are passed via system properties, you can only define each header once. Use the static addGlobalHeader method from code if needed.Modifiers | Name | Description |
---|---|---|
static java.lang.String |
CACHE_HEADERS_SYSTEM_PROPERTY |
|
static java.lang.String |
HEADER_SYSTEM_PROPERTY_PREFIX |
|
static java.lang.String |
REPLACE_HEADERS_SYSTEM_PROPERTY |
Constructor and description |
---|
GlobalHttpHeadersRequestFilter
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
addGlobalHeader(java.lang.String name, java.lang.String value) |
|
void |
afterAbstractHttpResponse(SubmitContext context, AbstractHttpRequestInterface<?> request) Restore headers to pre-request state |
|
void |
filterAbstractHttpRequest(SubmitContext context, AbstractHttpRequest<?> request) |
|
static void |
removeGlobalHeader(java.lang.String name, java.lang.String value) |
Methods inherited from class | Name |
---|---|
class AbstractRequestFilter |
afterAbstractHttpResponse, afterHttpRequest, afterRequest, afterRequest, afterRestRequest, afterWsdlRequest, filterAbstractHttpRequest, filterHttpRequest, filterRequest, filterRestRequest, filterWsdlRequest, filterXmlRpcRequest |
Restore headers to pre-request state
ReadyAPI functional (soapui) SDK 3.20.1