HttpHeader Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.HttpHeader

public class HttpHeader

An HTTP header name-value pair.

Constructor Summary

Constructor Description
HttpHeader()

Method Summary

Modifier and Type Method and Description
String name()

Get the name value.

String value()

Get the value value.

HttpHeader withName(String name)

Set the name value.

HttpHeader withValue(String value)

Set the value value.

Methods inherited from java.lang.Object

Constructor Details

HttpHeader

public HttpHeader()

Method Details

name

public String name()

Get the name value.

Returns:

the name value

value

public String value()

Get the value value.

Returns:

the value value

withName

public HttpHeader withName(String name)

Set the name value.

Parameters:

name - the name value to set

Returns:

the HttpHeader object itself.

withValue

public HttpHeader withValue(String value)

Set the value value.

Parameters:

value - the value value to set

Returns:

the HttpHeader object itself.

Applies to