public class Common extends Object
Constructor and Description |
---|
Common() |
public Map<String,DslProperty> convertObjectsToDslProperties(Map<String,Object> body)
public Collection convertObjectsToDslProperties(List<Object> body)
public DslProperty toDslProperty(Object property)
public DslProperty toDslProperty(Map property)
public DslProperty toDslProperty(List property)
public DslProperty toDslProperty(DslProperty property)
public NamedProperty named(DslProperty name, DslProperty value)
public NamedProperty named(DslProperty name, DslProperty value, DslProperty contentType)
public NamedProperty named(Map<String,DslProperty> namedMap)
public DslProperty value(DslProperty value)
public DslProperty $(DslProperty value)
public DslProperty value(Object value)
public DslProperty $(Object value)
public DslProperty value(ClientDslProperty client, ServerDslProperty server)
public DslProperty $(ClientDslProperty client, ServerDslProperty server)
public DslProperty value(ServerDslProperty server, ClientDslProperty client)
public DslProperty $(ServerDslProperty server, ClientDslProperty client)
public RegexProperty regex(String regex)
public RegexProperty regex(RegexProperty regex)
public RegexProperty regex(Pattern regex)
public OptionalProperty optional(Object object)
public RegexProperty regexProperty(Object object)
public ExecutionProperty execute(String commandToExecute)
public ClientDslProperty client(Object clientValue)
clientValue
- client valuepublic ClientDslProperty stub(Object clientValue)
clientValue
- client valuepublic ClientDslProperty consumer(Object clientValue)
clientValue
- client valuepublic ServerDslProperty server(Object serverValue)
serverValue
- server valuepublic ClientDslProperty c(Object clientValue)
clientValue
- client valuepublic ServerDslProperty p(Object serverValue)
serverValue
- server valuepublic ServerDslProperty test(Object serverValue)
serverValue
- server valuepublic FromFileProperty file(String relativePath)
relativePath
- of the file to readpublic FromFileProperty fileAsBytes(String relativePath)
relativePath
- of the file to readpublic FromFileProperty file(String relativePath, Charset charset)
relativePath
- of the file to readcharset
- to use for converting the bytes to Stringpublic ServerDslProperty producer(Object serverValue)
serverValue
- server valuepublic RegexProperty onlyAlphaUnicode()
public RegexProperty alphaNumeric()
public RegexProperty number()
public RegexProperty positiveInt()
public RegexProperty anyBoolean()
public RegexProperty anInteger()
public RegexProperty aDouble()
public RegexProperty ipAddress()
public RegexProperty hostname()
public RegexProperty email()
public RegexProperty url()
public RegexProperty httpsUrl()
public RegexProperty uuid()
public RegexProperty isoDate()
public RegexProperty isoDateTime()
public RegexProperty isoTime()
public RegexProperty iso8601WithOffset()
public RegexProperty nonEmpty()
public RegexProperty nonBlank()
Copyright © 2016–2019 Spring. All rights reserved.