Interface PortMapper
- All Known Implementing Classes:
PortMapperImpl
public interface PortMapper
PortMapper implementations provide callers with information about which
HTTP ports are associated with which HTTPS ports on the system, and vice versa.-
Method Summary
Modifier and TypeMethodDescriptiondefault IntegergetServerPort(jakarta.servlet.ServletRequest request) Get server port from request and automatically apply the configured mapping.@Nullable IntegerlookupHttpPort(Integer httpsPort) Locates the HTTP port associated with the specified HTTPS port.@Nullable IntegerlookupHttpsPort(Integer httpPort) Locates the HTTPS port associated with the specified HTTP port.
-
Method Details
-
lookupHttpPort
-
lookupHttpsPort
-
getServerPort
Get server port from request and automatically apply the configured mapping.- Parameters:
request- ServletRequest- Returns:
- the mapped port
-