Package com.linecorp.armeria.server
Class RoutingResultBuilder
java.lang.Object
com.linecorp.armeria.server.RoutingResultBuilder
public final class RoutingResultBuilder extends Object
Builds a new
RoutingResult
.-
Method Summary
Modifier and Type Method Description RoutingResult
build()
Returns a newly-createdRoutingResult
.RoutingResultBuilder
decodedParam(String name, String value)
Adds a decoded path parameter.RoutingResultBuilder
negotiatedResponseMediaType(MediaType negotiatedResponseMediaType)
Sets the negotiated producibleMediaType
.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.
-
Method Details
-
type
Sets the result type.- Parameters:
type
-RoutingResultType.MATCHED
orRoutingResultType.CORS_PREFLIGHT
.
-
path
Sets the mapped path, encoded as defined in RFC3986. -
query
Sets the specified query. -
decodedParam
Adds a decoded path parameter. -
rawParam
Adds an encoded path parameter, which will be decoded in UTF-8 automatically. -
score
Sets the score. -
negotiatedResponseMediaType
Sets the negotiated producibleMediaType
. -
build
Returns a newly-createdRoutingResult
.
-