U - type of UserA - type of Annotation that manage authentication on pages/componentspublic abstract class AbstractAuthenticationFilter<U,A extends Annotation> extends Object implements org.apache.tapestry5.services.ComponentRequestFilter
Created: 3 mai 2010
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAuthenticationFilter.AuthenticationRedirect |
| Modifier and Type | Field and Description |
|---|---|
protected Class<A> |
annotationClass |
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<?> |
getRedirectPage(AbstractAuthenticationFilter.AuthenticationRedirect redirectType) |
void |
handleComponentEvent(org.apache.tapestry5.services.ComponentEventRequestParameters parameters,
org.apache.tapestry5.services.ComponentRequestHandler handler) |
void |
handlePageRender(org.apache.tapestry5.services.PageRenderRequestParameters parameters,
org.apache.tapestry5.services.ComponentRequestHandler handler) |
protected boolean |
redirectUnauthorizedUser(String pageName) |
protected Class<A extends Annotation> annotationClass
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)
protected abstract Class<?> getRedirectPage(AbstractAuthenticationFilter.AuthenticationRedirect redirectType)
public void handleComponentEvent(org.apache.tapestry5.services.ComponentEventRequestParameters parameters,
org.apache.tapestry5.services.ComponentRequestHandler handler)
throws IOException
handleComponentEvent in interface org.apache.tapestry5.services.ComponentRequestFilterIOExceptionpublic void handlePageRender(org.apache.tapestry5.services.PageRenderRequestParameters parameters,
org.apache.tapestry5.services.ComponentRequestHandler handler)
throws IOException
handlePageRender in interface org.apache.tapestry5.services.ComponentRequestFilterIOExceptionprotected boolean redirectUnauthorizedUser(String pageName) throws IOException
IOExceptionCopyright © 2010–2016 CodeLutin. All rights reserved.