org.nuiton.web.tapestry5.services
Class AbstractAuthenticationFilter<U,A extends Annotation>
java.lang.Object
org.nuiton.web.tapestry5.services.AbstractAuthenticationFilter<U,A>
- Type Parameters:
U - type of UserA - type of Annotation that manage authentication on pages/components
- All Implemented Interfaces:
- org.apache.tapestry5.services.ComponentRequestFilter
public abstract class AbstractAuthenticationFilter<U,A extends Annotation>
- extends Object
- implements org.apache.tapestry5.services.ComponentRequestFilter
AbstractAuthenticationFilter
Created: 3 mai 2010
- Author:
- fdesbois
$Id: AbstractAuthenticationFilter.java 5 2010-05-04 16:23:44Z fdesbois $
|
Constructor Summary |
AbstractAuthenticationFilter(org.apache.tapestry5.services.PageRenderLinkSource renderLinkSource,
org.apache.tapestry5.services.ComponentSource componentSource,
org.apache.tapestry5.services.Response response,
ServiceAuthentication<U> serviceAuthentication,
Class<A> annotationClass)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
annotationClass
protected Class<A extends Annotation> annotationClass
AbstractAuthenticationFilter
public AbstractAuthenticationFilter(org.apache.tapestry5.services.PageRenderLinkSource renderLinkSource,
org.apache.tapestry5.services.ComponentSource componentSource,
org.apache.tapestry5.services.Response response,
ServiceAuthentication<U> serviceAuthentication,
Class<A> annotationClass)
getRedirectPage
protected abstract Class<?> getRedirectPage(AbstractAuthenticationFilter.AuthenticationRedirect redirectType)
handleComponentEvent
public void handleComponentEvent(org.apache.tapestry5.services.ComponentEventRequestParameters parameters,
org.apache.tapestry5.services.ComponentRequestHandler handler)
throws IOException
- Specified by:
handleComponentEvent in interface org.apache.tapestry5.services.ComponentRequestFilter
- Throws:
IOException
handlePageRender
public void handlePageRender(org.apache.tapestry5.services.PageRenderRequestParameters parameters,
org.apache.tapestry5.services.ComponentRequestHandler handler)
throws IOException
- Specified by:
handlePageRender in interface org.apache.tapestry5.services.ComponentRequestFilter
- Throws:
IOException
redirectUnauthorizedUser
protected boolean redirectUnauthorizedUser(String pageName)
throws IOException
- Throws:
IOException
Copyright © 2010 CodeLutin. All Rights Reserved.