Class RequestHostnameProvider

java.lang.Object
org.keycloak.url.RequestHostnameProvider
All Implemented Interfaces:
Provider, HostnameProvider

@Deprecated public class RequestHostnameProvider extends Object implements HostnameProvider
Deprecated.
  • Constructor Details

    • RequestHostnameProvider

      public RequestHostnameProvider()
      Deprecated.
  • Method Details

    • getScheme

      public String getScheme(jakarta.ws.rs.core.UriInfo originalUriInfo)
      Deprecated.
      Description copied from interface: HostnameProvider
      Returns the URL scheme. If not implemented will get the scheme from the request.
      Specified by:
      getScheme in interface HostnameProvider
      Parameters:
      originalUriInfo - the original URI
      Returns:
      the schema
    • getHostname

      public String getHostname(jakarta.ws.rs.core.UriInfo originalUriInfo)
      Deprecated.
      Description copied from interface: HostnameProvider
      Returns the host. If not implemented will get the host from the request.
      Specified by:
      getHostname in interface HostnameProvider
      Returns:
      the host
    • getPort

      public int getPort(jakarta.ws.rs.core.UriInfo originalUriInfo)
      Deprecated.
      Description copied from interface: HostnameProvider
      Returns the port (or -1 for default port). If not implemented will get the port from the request.
      Specified by:
      getPort in interface HostnameProvider
      Parameters:
      originalUriInfo - the original URI
      Returns:
      the port