mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 05:22:16 +00:00
PortResolver.NO_OP
Closes gh-16666
This commit is contained in:
parent
e64102b83c
commit
5f5427bd03
@ -31,6 +31,14 @@ import jakarta.servlet.ServletRequest;
|
|||||||
*/
|
*/
|
||||||
public interface PortResolver {
|
public interface PortResolver {
|
||||||
|
|
||||||
|
PortResolver NO_OP = new PortResolver() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getServerPort(ServletRequest request) {
|
||||||
|
return request.getServerPort();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates the port the <code>ServletRequest</code> was received on.
|
* Indicates the port the <code>ServletRequest</code> was received on.
|
||||||
* @param request that the method should lookup the port for
|
* @param request that the method should lookup the port for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user