public class AdditionalRequestHeadersInterceptor extends Object implements IClientInterceptor
| Constructor and Description |
|---|
AdditionalRequestHeadersInterceptor() |
AdditionalRequestHeadersInterceptor(Map<String,List<String>> additionalHttpHeaders) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllHeaderValues(String headerName,
List<String> headerValues)
Adds the list of header values for the given header.
|
void |
addHeaderValue(String headerName,
String headerValue)
Adds the given header value.
|
void |
interceptRequest(IHttpRequest theRequest)
Adds the additional header values to the HTTP request.
|
void |
interceptResponse(IHttpResponse theResponse)
Does nothing since this interceptor is not concerned with the response.
|
public AdditionalRequestHeadersInterceptor()
public AdditionalRequestHeadersInterceptor(Map<String,List<String>> additionalHttpHeaders)
public void addHeaderValue(String headerName, String headerValue)
headerName and headerValue cannot be null.headerName - the name of the headerheaderValue - the value to add for the headerNullPointerException - if either parameter is nullpublic void addAllHeaderValues(String headerName, List<String> headerValues)
headerName and headerValues cannot be null.headerName - the name of the headerheaderValues - the list of values to add for the headerNullPointerException - if either parameter is nullpublic void interceptRequest(IHttpRequest theRequest)
interceptRequest in interface IClientInterceptortheRequest - the HTTP requestpublic void interceptResponse(IHttpResponse theResponse) throws IOException
interceptResponse in interface IClientInterceptortheResponse - the HTTP responseIOExceptionCopyright © 2014–2018 University Health Network. All rights reserved.