Record Class PublicServerUrl
java.lang.Object
java.lang.Record
io.leandev.appfuse.web.url.PublicServerUrl
- Record Components:
baseUri- 完整 HTTP(S) 基底,不含 userinfo、query 或 fragment
已驗證的 Server 對外基底;不依 Servlet context、request 或應用設定推算。
endpoint 與 segment 接受未編碼值;query 值由 uri 方法編碼一次。 endpoint 不接受 query/fragment;動態 segment 不接受斜線、反斜線、百分號或 dot segment。 scheme/host 大小寫、預設 port、尾端單一斜線與 unreserved percent-encoding 會正規化。 這是位址組合能力,不判斷目的地是否可信、不執行網路請求、不提供租戶授權。
-
Constructor Summary
ConstructorsConstructorDescriptionPublicServerUrl(URI baseUri) Creates an instance of aPublicServerUrlrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()Returns the value of thebaseUrirecord component.根部署回傳 /,其餘回傳無尾斜線的對外 Path;適用 Session Cookie。final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PublicServerUrlendpoint 相對於 Server base;額外動態值逐 segment 編碼,不可傳入預編碼值。final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublicServerUrl
-
-
Method Details
-
of
-
cookiePath
根部署回傳 /,其餘回傳無尾斜線的對外 Path;適用 Session Cookie。 -
path
-
uri
-
uri
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
baseUri
-