org.apache.tapestry5.internal.services
Class ComponentEventLinkEncoderMethodAdvice
java.lang.Object
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderMethodAdvice
- All Implemented Interfaces:
- MethodAdvice
public class ComponentEventLinkEncoderMethodAdvice
- extends Object
- implements MethodAdvice
Advices
ComponentEventLinkEncoder.createComponentEventLink(org.apache.tapestry5.services.ComponentEventRequestParameters, boolean)
and
ComponentEventLinkEncoder.createPageRenderLink(org.apache.tapestry5.services.PageRenderRequestParameters)
to rewrites the returned links using URLRewriter.
|
Method Summary |
void |
advise(Invocation invocation)
Allows the Aspect to advise the invocation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentEventLinkEncoderMethodAdvice
public ComponentEventLinkEncoderMethodAdvice(URLRewriter urlRewriter,
Request request,
HttpServletRequest httpServletRequest,
Response response,
boolean forPageLink)
- Single constructor of this class.
- Parameters:
urlRewriter - an URLRewriter. It cannot be null.request - a Request. It cannot be null.httpServletRequest - an HttpServletRequest. It cannot be null.response - a Response. It cannot be null.forPageLink - true if the advice is for page link creation, false for component event link creation.
advise
public void advise(Invocation invocation)
- Description copied from interface:
MethodAdvice
- Allows the Aspect to advise the invocation. The Aspect is free to inspect and even replace parameters. Most
Aspects will then invoke
Invocation.proceed(). The Aspect may then inspect and
replace any checked thrown exceptions. Some Aspects (for example, caching) may selectively decide to bypass the
invocation entirely, and instead invoke some other method or otherwise set a return value or thrown exception.
- Specified by:
advise in interface MethodAdvice
- Parameters:
invocation - to advise
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.