本文整理汇总了Java中org.thymeleaf.processor.IProcessor类的典型用法代码示例。如果您正苦于以下问题:Java IProcessor类的具体用法?Java IProcessor怎么用?Java IProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IProcessor类属于org.thymeleaf.processor包,在下文中一共展示了IProcessor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(final String dialectPrefix) {
final Set<IProcessor> processors = new HashSet<IProcessor>();
processors.add(new YadaHrefAttrProcessor(dialectPrefix, config));
processors.add(new YadaSrcAttrProcessor(dialectPrefix, config));
// TODO move YadaActionUploadAttrProcessor to a yada security dialect
// processors.add(new YadaActionUploadAttrProcessor(dialectPrefix));
// Rimuove lo yada:xxx namespace dal tag <html>
processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix));
return processors;
}
示例2: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
final Set<IProcessor> processors = new HashSet<IProcessor>();
processors.add(new GuestAttributeTagProcessor(dialectPrefix));
processors.add(new GuestElementTagProcessor(dialectPrefix));
processors.add(new UserAttributeTagProcessor(dialectPrefix));
processors.add(new UserElementTagProcessor(dialectPrefix));
processors.add(new HasAllRolesAttributeTagProcessor(dialectPrefix));
processors.add(new HasAllRolesElementTagProcessor(dialectPrefix));
processors.add(new HasAnyRolesAttributeTagProcessor(dialectPrefix));
processors.add(new HasAnyRolesElementTagProcessor(dialectPrefix));
processors.add(new HasRoleAttributeTagProcessor(dialectPrefix));
processors.add(new HasRoleElementTagProcessor(dialectPrefix));
processors.add(new LacksRoleAttributeTagProcessor(dialectPrefix));
processors.add(new LacksRoleElementTagProcessor(dialectPrefix));
processors.add(new HasAllPermissionsAttributeTagProcessor(dialectPrefix));
processors.add(new HasAllPermissionsElementTagProcessor(dialectPrefix));
processors.add(new HasAnyPermissionsAttributeTagProcessor(dialectPrefix));
processors.add(new HasAnyPermissionsElementTagProcessor(dialectPrefix));
processors.add(new HasPermissionAttributeTagProcessor(dialectPrefix));
processors.add(new HasPermissionElementTagProcessor(dialectPrefix));
processors.add(new lacksPermissionAttributeTagProcessor(dialectPrefix));
processors.add(new LacksPermissionElementTagProcessor(dialectPrefix));
return processors;
}
示例3: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors() {
Set<IProcessor> processors = new HashSet<>();
processors.add(new WebjarsLinkProcessor("src"));
processors.add(new WebjarsLinkProcessor("href"));
return Collections.unmodifiableSet(processors);
}
示例4: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(final String dialectPrefix) {
final Set<IProcessor> processors = new HashSet<>();
processors.add(new PrettytimeProcessor()); // 日期美化 Processor
processors.add(new PropertiesProcessor()); // 获取配置文件 Processor
return processors;
}
示例5: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors() {
final Set<IProcessor> processors = new HashSet<IProcessor>();
processors.add(new TimeProcessor("time"));
processors.add(new DateProcessor("date"));
processors.add(new TitleProcessor("title"));
processors.add(new CommentProcessor("comment"));
processors.add(new IfProcessor("if"));
return processors;
}
示例6: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
IProcessorDialect dialect = this;
return new HashSet<IProcessor>() {{
add(new HtmlProcessor(dialect, getPrefix()));
}};
}
示例7: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
public Set<IProcessor> getProcessors(final String dialectPrefix) {
final Set<IProcessor> processors = new HashSet<IProcessor>();
processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, PREFIX));
processors.add(new PaginationAttrProcessor(PREFIX));
processors.add(new PaginationSortAttrProcessor(PREFIX));
processors.add(new PaginationSummaryAttrProcessor(PREFIX));
processors.add(new PageObjectAttrProcessor(PREFIX));
processors.add(new PaginationUrlAttrProcessor(PREFIX));
processors.add(new PaginationQualifierAttrProcessor(PREFIX));
processors.add(new PaginationSplitAttrProcessor(PREFIX));
processors.add(new PageSizeSelectorAttrProcessor(PREFIX));
return processors;
}
示例8: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors() {
Set<IProcessor> attrProcessors = new HashSet<IProcessor>();
attrProcessors.add(new ConnectionAttrProcessor());
attrProcessors.add(new ParamsAttrProcessor());
attrProcessors.add(new QueryAttrProcessor());
attrProcessors.add(new UpdateAttrProcessor());
return attrProcessors;
}
示例9: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
public Set<IProcessor> getProcessors(String dialectPrefix) {
final HashSet<IProcessor> processors = new HashSet<>();
processors.add(new UTextAfterHTMLProcessor(PREFIX, getDialectProcessorPrecedence()));
processors.add(new UTextBeforeHTMLProcessor(PREFIX, getDialectProcessorPrecedence()));
processors.add(new StripWhiteSpaceHTMLProcessor(PREFIX, getDialectProcessorPrecedence()));
return processors;
}
示例10: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
public Set<IProcessor> getProcessors(final String dialectPrefix) {
final Set<IProcessor> processors = new HashSet<IProcessor>();
processors.add(new FlashMessagesElementTagProcessor(dialectPrefix));
// This will remove the xmlns:score attributes we might add for IDE validation
processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix));
return processors;
}
示例11: it_should_get_a_standarxmlnstagprocessor
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Test
public void it_should_get_a_standarxmlnstagprocessor() {
final Set<IProcessor> processors = this.sut.getProcessors(DIALECT_PREFIX);
final long count = processors
.stream()
.filter(processor -> !(processor instanceof StandardXmlNsTagProcessor))
.count();
assertThat(count).isEqualTo(1);
}
示例12: it_should_get_a_flashmessageselementtagprocessor
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Test
public void it_should_get_a_flashmessageselementtagprocessor() {
final Set<IProcessor> processors = this.sut.getProcessors(DIALECT_PREFIX);
final long count = processors
.stream()
.filter(processor -> !(processor instanceof FlashMessagesElementTagProcessor))
.count();
assertThat(count).isEqualTo(1);
}
示例13: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
return Collections.unmodifiableSet(new LinkedHashSet<IProcessor>(Arrays.asList(
new IProcessor[] {
new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix),
new JawrCssAttributeTagProcessor(),
new JawrJsAttributeTagProcessor()
}
)));
}
示例14: getProcessors
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
HashSet<IProcessor> processors = new HashSet<IProcessor>();
processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix));
processors.add(new DataProcessor(TemplateMode.HTML, dialectPrefix));
return processors;
}
示例15: createDialect
import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
protected IDialect createDialect() {
return new AbstractDialect() {
@Override
public String getPrefix() {
return "csrf";
}
@Override
public Set<IProcessor> getProcessors() {
return ImmutableSet.<IProcessor>of(new CSRFElementProcessor());
}
};
}