The following document contains the results of RAT (Release Audit Tool).
*****************************************************
Summary
-------
Notes: 1
Binaries: 0
Archives: 0
Standards: 13
Apache Licensed: 12
Generated Documents: 0
JavaDocs are generated and so license header is optional
Generated files do not required license headers
1 Unknown Licenses
*******************************
Archives (+ indicates readable, $ unreadable):
*****************************************************
Files with AL headers will be marked L
Binary files (which do not require AL headers) will be marked B
Compressed archives will be marked A
Notices, licenses etc will be marked N
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/pom.xml
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/FreemarkerDecoratorServlet.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/FreemarkerMapper2DecoratorSelector.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/FreemarkerPageFilter.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/NoneDecoratorMapper.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/OldDecorator2NewStrutsDecorator.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/OldDecorator2NewStrutsFreemarkerDecorator.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/OldDecorator2NewStrutsVelocityDecorator.java
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/StrutsSiteMeshFactory.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityDecoratorServlet.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityMapper2DecoratorSelector.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityPageFilter.java
N /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/resources/NOTICE.txt
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/resources/struts-plugin.xml
*****************************************************
Printing headers for files without AL header...
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/StrutsSiteMeshFactory.java
=======================================================================
package org.apache.struts2.sitemesh;
import com.opensymphony.module.sitemesh.Config;
import com.opensymphony.module.sitemesh.factory.DefaultFactory;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsStatics;
public class StrutsSiteMeshFactory extends DefaultFactory {
public StrutsSiteMeshFactory(Config config) {
super(config);
}
/**
* Determine whether a Page of given content-type should be parsed or not, avoiding inner action parsing.
*/
@Override
public boolean shouldParsePage(String contentType) {
return !isInsideActionTag() && super.shouldParsePage(contentType);
}
private boolean isInsideActionTag() {
Object attribute = ServletActionContext.getRequest().getAttribute(StrutsStatics.STRUTS_ACTION_TAG_INVOCATION);
return (Boolean) ObjectUtils.defaultIfNull(attribute, Boolean.FALSE);
}
}