Class Reference.Builder
java.lang.Object
is.galia.http.Reference.Builder
- Enclosing class:
Reference
-
Method Summary
Modifier and TypeMethodDescriptionappendPath
(String path) applyProxyHeaders
(Headers headers) Applies any reverse proxying-related request headers present in the argument.build()
prependPath
(String path) withFragment
(String fragment) withPathSegment
(int segmentIndex, String pathSegment) Updates a segment (token between slashes) of the path.withPort
(int port) withScheme
(String scheme) withSecret
(String secret)
-
Method Details
-
appendPath
- Parameters:
path
- Path segment(s) to add to the end of the current path. If a leading slash is missing, it is added.
-
applyProxyHeaders
Applies any reverse proxying-related request headers present in the argument. The supported headers are:
X-Forwarded-Proto
X-Forwarded-Host
X-Forwarded-Port
X-Forwarded-BasePath
- Parameters:
headers
- Request headers.
-
prependPath
- Parameters:
path
- Path to prepend to the current path.
-
withFragment
-
withHost
-
withPath
- Parameters:
path
- New path. Any trailing slash is stripped.- See Also:
-
withPathSegment
Updates a segment (token between slashes) of the path.- Parameters:
segmentIndex
- Zero-based path segment index.pathSegment
- Path segment.- Throws:
IndexOutOfBoundsException
- if the given index is greater than the number of path segments.
-
withPort
-
withQuery
-
withScheme
-
withSecret
-
withUser
-
withoutFragment
-
withoutPath
-
withoutPort
-
withoutQuery
-
withoutTrailingSlashInPath
-
withoutSecret
-
withoutUser
-
build
-