public abstract class TargetBase extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.http.Header |
Via |
Constructor and Description |
---|
TargetBase() |
Modifier and Type | Method and Description |
---|---|
protected static Set<String> |
BuildHeaderRemovalList(org.apache.http.Header connectionHeader,
String... names)
Build a *lowercase* list of headers that should be removed.
|
protected static org.apache.http.Header |
CreateHttpViaHeader(org.apache.http.Header curViaHeader,
org.apache.http.ProtocolVersion protocolVersion)
Create an appropriate http 'Via' header as specified in (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.45)
|
protected static Set<String> BuildHeaderRemovalList(org.apache.http.Header connectionHeader, String... names)
connectionHeader
- The value of the 'Connection' header (may be null).names
- An additional list of header names that should be added to the returned list.protected static org.apache.http.Header CreateHttpViaHeader(org.apache.http.Header curViaHeader, org.apache.http.ProtocolVersion protocolVersion)
curViaHeader
- The existing 'Via' header (may be null).protocolVersion
- The version of this specific http transaction.Copyright © 2015–2024 Frank Stock. All rights reserved.