Interface HttpRoute.HeaderModifierOrBuilder (0.9.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
Name Description
key String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getAdd() (deprecated)

public abstract Map<String,String> getAdd()

Use #getAddMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
List<String>

A list containing the remove.

getSet() (deprecated)

public abstract Map<String,String> getSet()

Use #getSetMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String