public class DefaultHostnameProvider extends Object implements HostnameProvider
Constructor and Description |
---|
DefaultHostnameProvider(KeycloakSession session,
URI frontendUri,
URI adminUri,
boolean forceBackendUrlToFrontendUrl) |
Modifier and Type | Method and Description |
---|---|
String |
getContextPath(javax.ws.rs.core.UriInfo originalUriInfo,
UrlType type)
Returns the context-path for Keycloak.
|
String |
getHostname(javax.ws.rs.core.UriInfo originalUriInfo,
UrlType type)
Returns the host.
|
int |
getPort(javax.ws.rs.core.UriInfo originalUriInfo,
UrlType type)
Returns the port (or -1 for default port).
|
String |
getScheme(javax.ws.rs.core.UriInfo originalUriInfo,
UrlType type)
Returns the URL scheme.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getContextPath, getHostname, getPort, getScheme
public DefaultHostnameProvider(KeycloakSession session, URI frontendUri, URI adminUri, boolean forceBackendUrlToFrontendUrl)
public String getScheme(javax.ws.rs.core.UriInfo originalUriInfo, UrlType type)
HostnameProvider
HostnameProvider.getScheme(UriInfo)
.getScheme
in interface HostnameProvider
originalUriInfo
- the original URIpublic String getHostname(javax.ws.rs.core.UriInfo originalUriInfo, UrlType type)
HostnameProvider
HostnameProvider.getHostname(UriInfo)
.getHostname
in interface HostnameProvider
originalUriInfo
- the original URItype
- type of the requestpublic int getPort(javax.ws.rs.core.UriInfo originalUriInfo, UrlType type)
HostnameProvider
HostnameProvider.getPort(UriInfo)
getPort
in interface HostnameProvider
originalUriInfo
- the original URItype
- type of the requestpublic String getContextPath(javax.ws.rs.core.UriInfo originalUriInfo, UrlType type)
HostnameProvider
HostnameProvider.getContextPath(UriInfo)
getContextPath
in interface HostnameProvider
originalUriInfo
- the original URItype
- type of the requestCopyright © 2021 JBoss by Red Hat. All rights reserved.