类 PathContainer.Options
- java.lang.Object
- org.springframework.http.server.PathContainer.Options
- 封闭接口:
- PathContainer
public static class PathContainer.Options extends Object
Options to customize parsing based on the type of input path.- 从以下版本开始:
- 5.2
字段概要
字段 修饰符和类型 字段 说明 static PathContainer.Options
HTTP_PATH
Options for HTTP URL paths:static PathContainer.Options
MESSAGE_ROUTE
Options for a message route:
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static PathContainer.Options
create(char separator, boolean decodeAndParseSegments)
Create anPathContainer.Options
instance with the given settings.char
separator()
boolean
shouldDecodeAndParseSegments()
字段详细资料
HTTP_PATH
public static final PathContainer.Options HTTP_PATH
Options for HTTP URL paths:Separator '/' with URL decoding and parsing of path params.
MESSAGE_ROUTE
public static final PathContainer.Options MESSAGE_ROUTE
Options for a message route:Separator '.' without URL decoding nor parsing of params. Escape sequences for the separator char in segment values are still decoded.
方法详细资料
separator
public char separator()
shouldDecodeAndParseSegments
public boolean shouldDecodeAndParseSegments()
create
public static PathContainer.Options create(char separator, boolean decodeAndParseSegments)
Create anPathContainer.Options
instance with the given settings.- 参数:
separator
- the separator for parsing the path into segments; currently this must be slash or dot.decodeAndParseSegments
- whether to URL decode path segment values and parse path parameters. If set to false, only escape sequences for the separator char are decoded.