info.magnolia.cms.util
Interface PatternDelegate

All Known Implementing Classes:
UrlPatternDelegate

public interface PatternDelegate

A simple generic interface that can be used to configure anything that can be selected based on some conditions (i.e. a different login page based on the request URI or host).

Version:
$Id$
Author:
fgiust

Method Summary
 Object getDelegate()
          Returns the delegate that this bean holds.
 boolean match(javax.servlet.http.HttpServletRequest request)
          Does the current request match the expected condition?
 

Method Detail

match

boolean match(javax.servlet.http.HttpServletRequest request)
Does the current request match the expected condition?

Parameters:
request - HttpServletRequest
Returns:
true if the current request matches the expected conditions

getDelegate

Object getDelegate()
Returns the delegate that this bean holds. This method is usually called to retrieve the delegate object after match() returns true.

Returns:
delegate object


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.