Class SecurityHeaderUtil
java.lang.Object
fr.paris.lutece.util.securityheader.SecurityHeaderUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.util.AntPathMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetSecurityHeaderValue(javax.servlet.http.HttpServletRequest request, SecurityHeader securityHeader) Returns the value of the security header.
-
Field Details
-
PATH_MATCHER
public static final org.springframework.util.AntPathMatcher PATH_MATCHER
-
-
Constructor Details
-
SecurityHeaderUtil
public SecurityHeaderUtil()
-
-
Method Details
-
getSecurityHeaderValue
public static String getSecurityHeaderValue(javax.servlet.http.HttpServletRequest request, SecurityHeader securityHeader) Returns the value of the security header. If a custom value has been defined for the URL passed as a parameter, this custom value is returned else the default value is returned- Parameters:
request- the requestsecurityHeader- Secutiy header instance- Returns:
- value of the header (custom or default)
-