@UnstableApi public final class EndpointInfoBuilder extends Object
EndpointInfo using the builder pattern.| Constructor and Description |
|---|
EndpointInfoBuilder(String hostnamePattern,
String pathMapping)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
EndpointInfoBuilder |
availableFormats(Iterable<SerializationFormat> availableFormats)
Sets the available
SerializationFormats. |
EndpointInfoBuilder |
availableFormats(SerializationFormat... availableFormats)
Sets the available
SerializationFormats. |
EndpointInfoBuilder |
availableMimeTypes(Iterable<MediaType> availableMimeTypes)
Sets the available
MediaTypes. |
EndpointInfoBuilder |
availableMimeTypes(MediaType... availableMimeTypes)
Sets the available
MediaTypes. |
EndpointInfo |
build()
Returns a newly-created
EndpointInfo based on the properties of this builder. |
EndpointInfoBuilder |
defaultFormat(SerializationFormat defaultFormat)
Sets the default
SerializationFormat. |
EndpointInfoBuilder |
defaultMimeType(MediaType defaultMimeType)
Sets the default
MediaType. |
EndpointInfoBuilder |
fragment(String fragment)
Sets the fragment of the
pathMapping. |
EndpointInfoBuilder |
regexPathPrefix(String regexPathPrefix)
Sets the prefix of the pathMapping if the
pathMapping is a regular expression string and
the prefix exists. |
String |
toString() |
@Deprecated public EndpointInfoBuilder(String hostnamePattern, String pathMapping)
EndpointInfo.builder(String, String).EndpointInfoBuilder that builds the EndpointInfo with the specified
hostnamePattern and pathMapping.public EndpointInfoBuilder regexPathPrefix(String regexPathPrefix)
pathMapping is a regular expression string and
the prefix exists.public EndpointInfoBuilder fragment(String fragment)
pathMapping.public EndpointInfoBuilder defaultFormat(SerializationFormat defaultFormat)
SerializationFormat.public EndpointInfoBuilder defaultMimeType(MediaType defaultMimeType)
MediaType.public EndpointInfoBuilder availableFormats(SerializationFormat... availableFormats)
SerializationFormats.public EndpointInfoBuilder availableFormats(Iterable<SerializationFormat> availableFormats)
SerializationFormats.public EndpointInfoBuilder availableMimeTypes(MediaType... availableMimeTypes)
MediaTypes.public EndpointInfoBuilder availableMimeTypes(Iterable<MediaType> availableMimeTypes)
MediaTypes.public EndpointInfo build()
EndpointInfo based on the properties of this builder.Copyright © 2020 LeanCloud. All rights reserved.