Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.grails.web.mapping
Class DefaultUrlMappingEvaluator.UrlMappingBuilder

    java.lang.Object
      groovy.lang.GroovyObjectSupport
          org.codehaus.groovy.grails.web.mapping.DefaultUrlMappingEvaluator.UrlMappingBuilder

All Implemented Interfaces:
  groovy.lang.GroovyObject

Enclosing class:
  DefaultUrlMappingEvaluator

     class DefaultUrlMappingEvaluator.UrlMappingBuilder

extends groovy.lang.GroovyObjectSupport

A modal builder that constructs a UrlMapping instances by executing a closure. The class overrides getProperty(name) and allows the substitution of GString values with the * wildcard.

invokeMethod(methodName, args) is also overriden for the creation of each UrlMapping instance

Constructor Summary
`DefaultUrlMappingEvaluator.UrlMappingBuilder()`
`DefaultUrlMappingEvaluator.UrlMappingBuilder(groovy.lang.Binding b)`

Method Summary
`Object` | `getAction()`
`String` | `getController()`
`Object` | `getProperty(String name)`
`List` | `getUrlMappings()`
`String` | `getView()`
`Object` | `invokeMethod(String methodName, Object arg)`
`(package private) Object` | `propertyMissing(String name)`
`(package private) void` | `propertyMissing(String name, Object value)`
`void` | `setAction(Object action)`
`void` | `setController(String controller)`
`void` | `setView(String viewName)`

Methods inherited from class groovy.lang.GroovyObjectSupport
`getMetaClass, setMetaClass, setProperty`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultUrlMappingEvaluator.UrlMappingBuilder

    public DefaultUrlMappingEvaluator.UrlMappingBuilder(groovy.lang.Binding b)

### DefaultUrlMappingEvaluator.UrlMappingBuilder

    public DefaultUrlMappingEvaluator.UrlMappingBuilder()

Method Detail

### getUrlMappings

    public List getUrlMappings()

### getProperty

    public Object getProperty(String name)

  Specified by:
    `getProperty` in interface `groovy.lang.GroovyObject`
  Overrides:
    `getProperty` in class `groovy.lang.GroovyObjectSupport`

### setAction

    public void setAction(Object action)

### getAction

    public Object getAction()

### setController

    public void setController(String controller)

### getController

    public String getController()

### getView

    public String getView()

### setView

    public void setView(String viewName)

### invokeMethod

    public Object invokeMethod(String methodName,
                               Object arg)

  Specified by:
    `invokeMethod` in interface `groovy.lang.GroovyObject`
  Overrides:
    `invokeMethod` in class `groovy.lang.GroovyObjectSupport`

### propertyMissing

    void propertyMissing(String name,
                         Object value)

### propertyMissing

    Object propertyMissing(String name)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2005-2006 The Grails project