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

com.sap.cloud.yaas.servicesdk.springboot.clients.jersey.JerseyClientProperties Maven / Gradle / Ivy

There is a newer version: 4.17.1
Show newest version
/*
 * © 2017 SAP SE or an SAP affiliate company.
 * All rights reserved.
 * Please see http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and
 * notices.
 */
package com.sap.cloud.yaas.servicesdk.springboot.clients.jersey;

import java.util.HashMap;
import java.util.Map;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import org.springframework.boot.context.properties.ConfigurationProperties;

import com.sap.cloud.yaas.servicesdk.springboot.jersey.JerseyServiceProperties.RequestResponseLoggingProperties;


/**
 * Properties used to configure a Jersey Client.
 */
@ConfigurationProperties(prefix = "yaas.clients.jersey")
public class JerseyClientProperties
{
	/**
	 * String valued configuration properties to pass through to the Jersey Client.
	 * Properties given here will be prepended with "jersey.config", so Spring property "yaas.clients.jersey.config.foo"
	 * maps to Jersey property "jersey.config.foo".
	 */
	@NotNull
	private final Map config = new HashMap<>();

	/**
	 * Nested configuration properties that control logging of requests made by the client, and the corresponding
	 * responses.
	 */
	@NotNull
	@Valid
	private final RequestResponseLoggingProperties requestResponseLogging = new RequestResponseLoggingProperties();

	public Map getConfig()
	{
		return config;
	}

	public RequestResponseLoggingProperties getRequestResponseLogging()
	{
		return requestResponseLogging;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy