Package com.linecorp.armeria.server.docs
Class EndpointInfo
java.lang.Object
com.linecorp.armeria.server.docs.EndpointInfo
@UnstableApi public final class EndpointInfo extends Object
Metadata about the endpoints exposed by a
Service
.-
Method Summary
Modifier and Type Method Description Set<MediaType>
availableMimeTypes()
Returns the set of available MIME types of this endpoint.static EndpointInfoBuilder
builder(String hostnamePattern, String pathMapping)
Returns a newly createdEndpointInfoBuilder
that builds theEndpointInfo
with the specifiedhostnamePattern
andpathMapping
.MediaType
defaultMimeType()
Returns the default MIME type of this endpoint.boolean
equals(Object obj)
String
fragment()
Returns the URI fragment of this endpoint.int
hashCode()
String
hostnamePattern()
Returns the hostname pattern of this endpoint.String
pathMapping()
Returns the path mapping of this endpoint.String
regexPathPrefix()
Returns the prefix of this endpoint if thepathMapping()
returns a regular expression string of endpoint and the prefix exists, otherwisenull
.String
toString()
-
Method Details
-
builder
Returns a newly createdEndpointInfoBuilder
that builds theEndpointInfo
with the specifiedhostnamePattern
andpathMapping
. -
hostnamePattern
Returns the hostname pattern of this endpoint. -
pathMapping
Returns the path mapping of this endpoint. -
regexPathPrefix
Returns the prefix of this endpoint if thepathMapping()
returns a regular expression string of endpoint and the prefix exists, otherwisenull
. -
fragment
Returns the URI fragment of this endpoint. -
defaultMimeType
Returns the default MIME type of this endpoint. -
availableMimeTypes
Returns the set of available MIME types of this endpoint. -
hashCode
public int hashCode() -
equals
-
toString
-