org.springframework.security.web.header.writers.frameoptions
Class StaticAllowFromStrategy
java.lang.Object
org.springframework.security.web.header.writers.frameoptions.StaticAllowFromStrategy
- All Implemented Interfaces:
- AllowFromStrategy
public final class StaticAllowFromStrategy
- extends Object
- implements AllowFromStrategy
Simple implementation of the AllowFromStrategy
Method Summary |
String |
getAllowFromValue(javax.servlet.http.HttpServletRequest request)
Gets the value for ALLOW-FROM excluding the ALLOW-FROM. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticAllowFromStrategy
public StaticAllowFromStrategy(URI uri)
getAllowFromValue
public String getAllowFromValue(javax.servlet.http.HttpServletRequest request)
- Description copied from interface:
AllowFromStrategy
- Gets the value for ALLOW-FROM excluding the ALLOW-FROM. For example, the
result might be "https://example.com/".
- Specified by:
getAllowFromValue
in interface AllowFromStrategy
- Parameters:
request
- the HttpServletRequest
- Returns:
- the value for ALLOW-FROM or null if no header should be added for this request.