All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.security.xsuaa.http.HttpHeader Maven / Gradle / Ivy

There is a newer version: 3.5.6
Show newest version
/**
 * SPDX-FileCopyrightText: 2018-2023 SAP SE or an SAP affiliate company and Cloud Security Client Java contributors
 * 

* SPDX-License-Identifier: Apache-2.0 */ package com.sap.cloud.security.xsuaa.http; import java.util.Objects; public class HttpHeader { private final String name; private final String value; public HttpHeader(String name, String value) { this.name = name; this.value = value; } public String getValue() { return value; } public String getName() { return name; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final HttpHeader that = (HttpHeader) o; return Objects.equals(getName(), that.getName()) && Objects.equals(getValue(), that.getValue()); } @Override public int hashCode() { return Objects.hash(getName(), getValue()); } @Override public String toString() { return "\"" + name + ": " + value + "\""; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy