public final class RoutingResultBuilder extends Object
RoutingResult.| Modifier and Type | Method and Description |
|---|---|
RoutingResult |
build()
Returns a newly-created
RoutingResult. |
RoutingResultBuilder |
decodedParam(String name,
String value)
Adds a decoded path parameter.
|
RoutingResultBuilder |
negotiatedResponseMediaType(MediaType negotiatedResponseMediaType)
Sets the negotiated producible
MediaType. |
RoutingResultBuilder |
path(String path)
Sets the mapped path, encoded as defined in RFC3986.
|
RoutingResultBuilder |
query(String query)
Sets the specified query.
|
RoutingResultBuilder |
rawParam(String name,
String value)
Adds an encoded path parameter, which will be decoded in UTF-8 automatically.
|
RoutingResultBuilder |
score(int score)
Sets the score.
|
RoutingResultBuilder |
type(RoutingResultType type)
Sets the result type.
|
public RoutingResultBuilder type(RoutingResultType type)
type - RoutingResultType.MATCHED or RoutingResultType.CORS_PREFLIGHT.public RoutingResultBuilder path(String path)
public RoutingResultBuilder query(@Nullable String query)
public RoutingResultBuilder decodedParam(String name, String value)
public RoutingResultBuilder rawParam(String name, String value)
public RoutingResultBuilder score(int score)
public RoutingResultBuilder negotiatedResponseMediaType(MediaType negotiatedResponseMediaType)
MediaType.public RoutingResult build()
RoutingResult.Copyright © 2020 LeanCloud. All rights reserved.