value method

String value (
  1. String name
)

Convenience method for the value for a single valued header. If there is no header with the provided name, null will be returned. If the header has more than one value an exception is thrown.

Implementation

String value(String name);