Package com.linecorp.armeria.server.docs
Class EndpointInfoBuilder
java.lang.Object
com.linecorp.armeria.server.docs.EndpointInfoBuilder
@UnstableApi public final class EndpointInfoBuilder extends Object
Creates a new
EndpointInfo
using the builder pattern.-
Method Summary
Modifier and Type Method Description EndpointInfoBuilder
availableFormats(SerializationFormat... availableFormats)
Sets the availableSerializationFormat
s.EndpointInfoBuilder
availableFormats(Iterable<SerializationFormat> availableFormats)
Sets the availableSerializationFormat
s.EndpointInfoBuilder
availableMimeTypes(MediaType... availableMimeTypes)
Sets the availableMediaType
s.EndpointInfoBuilder
availableMimeTypes(Iterable<MediaType> availableMimeTypes)
Sets the availableMediaType
s.EndpointInfo
build()
Returns a newly-createdEndpointInfo
based on the properties of this builder.EndpointInfoBuilder
defaultFormat(SerializationFormat defaultFormat)
Sets the defaultSerializationFormat
.EndpointInfoBuilder
defaultMimeType(MediaType defaultMimeType)
Sets the defaultMediaType
.EndpointInfoBuilder
fragment(String fragment)
Sets the fragment of thepathMapping
.EndpointInfoBuilder
regexPathPrefix(String regexPathPrefix)
Sets the prefix of the pathMapping if thepathMapping
is a regular expression string and the prefix exists.String
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
-