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, waitclose, getContextPath, getHostname, getPort, getSchemepublic DefaultHostnameProvider(KeycloakSession session, URI frontendUri, URI adminUri, boolean forceBackendUrlToFrontendUrl)
public String getScheme(javax.ws.rs.core.UriInfo originalUriInfo, UrlType type)
HostnameProviderHostnameProvider.getScheme(UriInfo).getScheme in interface HostnameProvideroriginalUriInfo - the original URIpublic String getHostname(javax.ws.rs.core.UriInfo originalUriInfo, UrlType type)
HostnameProviderHostnameProvider.getHostname(UriInfo).getHostname in interface HostnameProvideroriginalUriInfo - the original URItype - type of the requestpublic int getPort(javax.ws.rs.core.UriInfo originalUriInfo,
UrlType type)
HostnameProviderHostnameProvider.getPort(UriInfo)getPort in interface HostnameProvideroriginalUriInfo - the original URItype - type of the requestpublic String getContextPath(javax.ws.rs.core.UriInfo originalUriInfo, UrlType type)
HostnameProviderHostnameProvider.getContextPath(UriInfo)getContextPath in interface HostnameProvideroriginalUriInfo - the original URItype - type of the requestCopyright © 2021 JBoss by Red Hat. All rights reserved.