Package org.springframework.security.web
Class PortResolverImpl
java.lang.Object
org.springframework.security.web.PortResolverImpl
- All Implemented Interfaces:
- PortResolver
Deprecated, for removal: This API element is subject to removal in a future version.
This existed for an old IE bug and is no longer need.
Concrete implementation of 
PortResolver that obtains the port from
 ServletRequest.getServerPort().
 
 This class is capable of handling the IE bug which results in an incorrect URL being
 presented in the header subsequent to a redirect to a different scheme and port where
 the port is not a well-known number (ie 80 or 443). Handling involves detecting an
 incorrect response from ServletRequest.getServerPort() for the scheme (eg
 a HTTP request on 8443) and then determining the real server port (eg HTTP request is
 really on 8080). The map of valid ports is obtained from the configured
 PortMapper.
- 
Field SummaryFields inherited from interface org.springframework.security.web.PortResolverNO_OP
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.intgetServerPort(jakarta.servlet.ServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Indicates the port theServletRequestwas received on.voidsetPortMapper(PortMapper portMapper) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor Details- 
PortResolverImplpublic PortResolverImpl()Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
getPortMapperDeprecated, for removal: This API element is subject to removal in a future version.
- 
getServerPortpublic int getServerPort(jakarta.servlet.ServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PortResolverIndicates the port theServletRequestwas received on.- Specified by:
- getServerPortin interface- PortResolver
- Parameters:
- request- that the method should lookup the port for
- Returns:
- the port the request was received on
 
- 
setPortMapperDeprecated, for removal: This API element is subject to removal in a future version.
 
-