Class CsrfProtectionModule
java.lang.Object
at.porscheinformatik.tapestry.csrfprotection.services.CsrfProtectionModule
IoC module for Tapestry CSRF Protection. CHECKSTYLE:OFF
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCsrfFilter(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.ComponentEventRequestFilter> configuration) static voidbind(org.apache.tapestry5.ioc.ServiceBinder binder) static CsrfTokenRepositorybuildCsrfTokenRepository(org.apache.tapestry5.commons.ObjectLocator objectLocator) static voidcontributeComponentClassResolver(org.apache.tapestry5.commons.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration) static voidcontributeFactoryDefaults(org.apache.tapestry5.commons.MappedConfiguration<String, Object> configuration) static org.apache.tapestry5.services.linktransform.LinkTransformerdecorateLinkTransformer(Class<org.apache.tapestry5.services.linktransform.LinkTransformer> serviceInterface, org.apache.tapestry5.services.linktransform.LinkTransformer delegate, String serviceId, org.apache.tapestry5.services.linktransform.ComponentEventLinkTransformer csrfComponentEventLinkTransformer)
-
Constructor Details
-
CsrfProtectionModule
public CsrfProtectionModule()
-
-
Method Details
-
bind
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder) -
contributeComponentClassResolver
public static void contributeComponentClassResolver(org.apache.tapestry5.commons.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration) -
buildCsrfTokenRepository
public static CsrfTokenRepository buildCsrfTokenRepository(org.apache.tapestry5.commons.ObjectLocator objectLocator) -
decorateLinkTransformer
@Decorate(serviceInterface=org.apache.tapestry5.services.linktransform.LinkTransformer.class) @Match("LinkTransformer") public static org.apache.tapestry5.services.linktransform.LinkTransformer decorateLinkTransformer(Class<org.apache.tapestry5.services.linktransform.LinkTransformer> serviceInterface, org.apache.tapestry5.services.linktransform.LinkTransformer delegate, String serviceId, @Local org.apache.tapestry5.services.linktransform.ComponentEventLinkTransformer csrfComponentEventLinkTransformer) -
addCsrfFilter
@Contribute(org.apache.tapestry5.services.ComponentEventRequestHandler.class) public static void addCsrfFilter(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.ComponentEventRequestFilter> configuration) -
contributeFactoryDefaults
-