Class LocalhostOnly
- java.lang.Object
-
- org.apache.tapestry5.internal.services.security.LocalhostOnly
-
- All Implemented Interfaces:
WhitelistAnalyzer
public class LocalhostOnly extends java.lang.Object implements WhitelistAnalyzer
Standard analyzer that places requests from loopback addresses onto the whitelist. Recognized forms include IPv4 (127.x.x.x), IPv6 (::1, 0:0:0:0:0:0:0:1), compressed or with arbitrary scope IDs (e.g. ::1%lo, 0:0:0:0:0:0:0:1%eth0), and IPv4-mapped IPv6 loopback (::ffff:127.0.0.1).- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description LocalhostOnly()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRequestOnWhitelist(Request request)
-
-
-
Constructor Detail
-
LocalhostOnly
public LocalhostOnly()
-
-
Method Detail
-
isRequestOnWhitelist
public boolean isRequestOnWhitelist(Request request)
- Specified by:
isRequestOnWhitelistin interfaceWhitelistAnalyzer
-
-