001/* 002 * Copyright 2012-2018 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.boot.test.autoconfigure.restdocs; 018 019import org.springframework.boot.context.properties.ConfigurationProperties; 020 021/** 022 * Configuration properties for Spring REST Docs. 023 * 024 * @author Andy Wilkinson 025 * @author EddĂș MelĂ©ndez 026 * @author Phillip Webb 027 * @since 2.0.0 028 */ 029@ConfigurationProperties("spring.test.restdocs") 030public class RestDocsProperties { 031 032 /** 033 * The URI scheme for to use (for example http). 034 */ 035 private String uriScheme; 036 037 /** 038 * The URI host to use. 039 */ 040 private String uriHost; 041 042 /** 043 * The URI port to use. 044 */ 045 private Integer uriPort; 046 047 public String getUriScheme() { 048 return this.uriScheme; 049 } 050 051 public void setUriScheme(String uriScheme) { 052 this.uriScheme = uriScheme; 053 } 054 055 public String getUriHost() { 056 return this.uriHost; 057 } 058 059 public void setUriHost(String uriHost) { 060 this.uriHost = uriHost; 061 } 062 063 public Integer getUriPort() { 064 return this.uriPort; 065 } 066 067 public void setUriPort(Integer uriPort) { 068 this.uriPort = uriPort; 069 } 070 071}