Package com.linecorp.armeria.server.docs
Class EndpointInfoBuilder
java.lang.Object
com.linecorp.armeria.server.docs.EndpointInfoBuilder
Creates a new
EndpointInfo
using the builder pattern.-
Method Summary
Modifier and TypeMethodDescriptionavailableFormats
(SerializationFormat... availableFormats) Sets the availableSerializationFormat
s.availableFormats
(Iterable<SerializationFormat> availableFormats) Sets the availableSerializationFormat
s.availableMimeTypes
(MediaType... availableMimeTypes) Sets the availableMediaType
s.availableMimeTypes
(Iterable<MediaType> availableMimeTypes) Sets the availableMediaType
s.build()
Returns a newly-createdEndpointInfo
based on the properties of this builder.defaultFormat
(SerializationFormat defaultFormat) Sets the defaultSerializationFormat
.defaultMimeType
(MediaType defaultMimeType) Sets the defaultMediaType
.Sets the fragment of thepathMapping
.regexPathPrefix
(String regexPathPrefix) Sets the prefix of the pathMapping if thepathMapping
is a regular expression string and the prefix exists.toString()
-
Method Details
-
regexPathPrefix
Sets the prefix of the pathMapping if thepathMapping
is a regular expression string and the prefix exists. -
fragment
Sets the fragment of thepathMapping
. -
defaultFormat
Sets the defaultSerializationFormat
. -
defaultMimeType
Sets the defaultMediaType
. -
availableFormats
Sets the availableSerializationFormat
s. -
availableFormats
Sets the availableSerializationFormat
s. -
availableMimeTypes
Sets the availableMediaType
s. -
availableMimeTypes
Sets the availableMediaType
s. -
build
Returns a newly-createdEndpointInfo
based on the properties of this builder. -
toString
-