Interface HttpRoute.HeaderModifierOrBuilder (0.15.0)

public static interface HttpRoute.HeaderModifierOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsAdd(String key)

public abstract boolean containsAdd(String key)

Add the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> add = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsSet(String key)

public abstract boolean containsSet(String key)

Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> set = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAdd()

public abstract Map<String,String> getAdd()

Use #getAddMap() instead.

Returns
TypeDescription
Map<String,String>

getAddCount()

public abstract int getAddCount()

Add the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> add = 2;

Returns
TypeDescription
int

getAddMap()

public abstract Map<String,String> getAddMap()

Add the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> add = 2;

Returns
TypeDescription
Map<String,String>

getAddOrDefault(String key, String defaultValue)

public abstract String getAddOrDefault(String key, String defaultValue)

Add the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> add = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAddOrThrow(String key)

public abstract String getAddOrThrow(String key)

Add the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> add = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getRemove(int index)

public abstract String getRemove(int index)

Remove headers (matching by header names) specified in the list.

repeated string remove = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The remove at the given index.

getRemoveBytes(int index)

public abstract ByteString getRemoveBytes(int index)

Remove headers (matching by header names) specified in the list.

repeated string remove = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the remove at the given index.

getRemoveCount()

public abstract int getRemoveCount()

Remove headers (matching by header names) specified in the list.

repeated string remove = 3;

Returns
TypeDescription
int

The count of remove.

getRemoveList()

public abstract List<String> getRemoveList()

Remove headers (matching by header names) specified in the list.

repeated string remove = 3;

Returns
TypeDescription
List<String>

A list containing the remove.

getSet()

public abstract Map<String,String> getSet()

Use #getSetMap() instead.

Returns
TypeDescription
Map<String,String>

getSetCount()

public abstract int getSetCount()

Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> set = 1;

Returns
TypeDescription
int

getSetMap()

public abstract Map<String,String> getSetMap()

Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> set = 1;

Returns
TypeDescription
Map<String,String>

getSetOrDefault(String key, String defaultValue)

public abstract String getSetOrDefault(String key, String defaultValue)

Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> set = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getSetOrThrow(String key)

public abstract String getSetOrThrow(String key)

Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.

map<string, string> set = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String