类 DefaultRequestPath
java.lang.Object
cn.taketoday.http.server.PathContainer
cn.taketoday.http.server.RequestPath
cn.taketoday.http.server.DefaultRequestPath
Default implementation of
RequestPath.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.http.server.PathContainer
PathContainer.Element, PathContainer.Options, PathContainer.PathSegment, PathContainer.Separator -
字段概要
字段 -
构造器概要
构造器限定符构造器说明privateDefaultRequestPath(RequestPath requestPath, String contextPath) (专用程序包)DefaultRequestPath(String rawPath, String contextPath) -
方法概要
修饰符和类型方法说明Returns the portion of the URL path that represents the application.elements()The contained path elements, eitherPathContainer.SeparatororPathContainer.PathSegment.booleanprivate static PathContainerextractPathWithinApplication(PathContainer fullPath, PathContainer contextPath) inthashCode()private static PathContainerinitContextPath(PathContainer path, String contextPath) modifyContextPath(String contextPath) Return a newRequestPathinstance with a modified context path.The portion of the request path after the context path which is typically used for request mapping within the application .toString()private static voidvalidateContextPath(String fullPath, String contextPath) value()The original path from which this instance was parsed.从类继承的方法 cn.taketoday.http.server.RequestPath
parse, parse从类继承的方法 cn.taketoday.http.server.PathContainer
parsePath, parsePath, subPath, subPath
-
字段详细资料
-
fullPath
-
contextPath
-
pathWithinApplication
-
-
构造器详细资料
-
DefaultRequestPath
-
DefaultRequestPath
-
-
方法详细资料
-
initContextPath
-
validateContextPath
-
extractPathWithinApplication
private static PathContainer extractPathWithinApplication(PathContainer fullPath, PathContainer contextPath) -
value
从类复制的说明:PathContainerThe original path from which this instance was parsed.- 指定者:
value在类中PathContainer
-
elements
从类复制的说明:PathContainerThe contained path elements, eitherPathContainer.SeparatororPathContainer.PathSegment.- 指定者:
elements在类中PathContainer
-
contextPath
从类复制的说明:RequestPathReturns the portion of the URL path that represents the application. The context path is always at the beginning of the path and starts but does not end with "/". It is shared for URLs of the same application.The context path may come from the underlying runtime API such as when deploying as a WAR to a Servlet container or it may be assigned in a WebFlux application through the use of
ContextPathCompositeHandler.- 指定者:
contextPath在类中RequestPath
-
pathWithinApplication
从类复制的说明:RequestPathThe portion of the request path after the context path which is typically used for request mapping within the application .- 指定者:
pathWithinApplication在类中RequestPath
-
modifyContextPath
从类复制的说明:RequestPathReturn a newRequestPathinstance with a modified context path. The new context path must match 0 or more path segments at the start.- 指定者:
modifyContextPath在类中RequestPath- 参数:
contextPath- the new context path- 返回:
- a new
RequestPathinstance
-
equals
-
hashCode
public int hashCode() -
toString
-