@UnstableApi public final class EndpointInfo extends Object
Service.| Modifier and Type | Method and Description |
|---|---|
Set<MediaType> |
availableMimeTypes()
Returns the set of available MIME types of this endpoint.
|
static EndpointInfoBuilder |
builder(String hostnamePattern,
String pathMapping)
Returns a newly created
EndpointInfoBuilder that builds the EndpointInfo with
the specified hostnamePattern and pathMapping. |
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 the
pathMapping() returns a regular expression string
of endpoint and the prefix exists, otherwise null. |
String |
toString() |
public static EndpointInfoBuilder builder(String hostnamePattern, String pathMapping)
EndpointInfoBuilder that builds the EndpointInfo with
the specified hostnamePattern and pathMapping.public String hostnamePattern()
public String pathMapping()
public String regexPathPrefix()
pathMapping() returns a regular expression string
of endpoint and the prefix exists, otherwise null.public String fragment()
public MediaType defaultMimeType()
public Set<MediaType> availableMimeTypes()
Copyright © 2020 LeanCloud. All rights reserved.