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