AbstractUrlMapping (Grails 2.3.8)
Date: 2014-04-24

Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.grails.web.mapping
[Java] Class AbstractUrlMapping

    java.lang.Object
      org.codehaus.groovy.grails.web.mapping.AbstractUrlMapping

All Implemented Interfaces:
  UrlMapping

    public abstract class AbstractUrlMapping
    extends java.lang.Object

Abstract UrlMapping implementation that provides common basic functionality.

Authors:
  Graeme Rocher

Since:
  0.5.5

Field Summary
`protected java.lang.Object` | `actionName`
`protected ConstrainedProperty[]` | `constraints`
`protected java.lang.Object` | `controllerName`
`protected java.lang.Object` | `forwardURI`
`protected java.lang.String` | `httpMethod`
`protected java.lang.String` | `mappingName`
`protected java.lang.Object` | `namespace`
`protected java.util.Map` | `parameterValues`
`protected boolean` | `parseRequest`
`protected java.lang.Object` | `pluginName`
`protected java.lang.Object` | `redirectInfo`
`protected boolean` | `restful`
`protected javax.servlet.ServletContext` | `servletContext`
`protected java.lang.String` | `version`
`protected java.lang.Object` | `viewName`

Constructor Summary
`AbstractUrlMapping(java.lang.Object redirectInfo, java.lang.Object controllerName, java.lang.Object actionName, java.lang.Object namespace, java.lang.Object pluginName, java.lang.Object viewName, ConstrainedProperty[] constraints, javax.servlet.ServletContext servletContext)` Base constructor required to construct a UrlMapping instance
`protected AbstractUrlMapping(java.lang.Object viewName, ConstrainedProperty[] constraints, javax.servlet.ServletContext servletContext)`
`protected AbstractUrlMapping(java.net.URI uri, ConstrainedProperty[] constraints, javax.servlet.ServletContext servletContext)`

Method Summary
`java.lang.Object` | `getActionName()` @see org.codehaus.groovy.grails.web.mapping.UrlMapping#getActionName()
`ConstrainedProperty[]` | `getConstraints()` @see UrlMapping#getConstraints()
`java.lang.Object` | `getControllerName()` @see UrlMapping#getControllerName()
`java.lang.String` | `getHttpMethod()`
`java.lang.String` | `getMappingName()`
`java.lang.Object` | `getNamespace()`
`java.lang.Object` | `getPluginName()`
`java.lang.Object` | `getRedirectInfo()`
`java.lang.String` | `getVersion()`
`java.lang.Object` | `getViewName()` @see org.codehaus.groovy.grails.web.mapping.UrlMapping#getViewName()
`boolean` | `hasRuntimeVariable(java.lang.String name)`
`boolean` | `isRestfulMapping()`
`void` | `setMappingName(java.lang.String name)`
`void` | `setParameterValues(java.util.Map parameterValues)`
`void` | `setParseRequest(boolean shouldParse)`
`void` | `setRestfulMapping(boolean isREST)`

Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Field Detail

### actionName

    protected java.lang.Object actionName

### constraints

    protected final ConstrainedProperty[] constraints

### controllerName

    protected java.lang.Object controllerName

### forwardURI

    protected java.lang.Object forwardURI

### httpMethod

    protected java.lang.String httpMethod

### mappingName

    protected java.lang.String mappingName

### namespace

    protected java.lang.Object namespace

### parameterValues

    @java.lang.SuppressWarnings("rawtypes")
    protected java.util.Map parameterValues

### parseRequest

    protected boolean parseRequest

### pluginName

    protected java.lang.Object pluginName

### redirectInfo

    protected java.lang.Object redirectInfo

### restful

    protected boolean restful

### servletContext

    protected javax.servlet.ServletContext servletContext

### version

    protected java.lang.String version

### viewName

    protected java.lang.Object viewName

Constructor Detail

### AbstractUrlMapping

    public AbstractUrlMapping(java.lang.Object redirectInfo, java.lang.Object controllerName, java.lang.Object actionName, java.lang.Object namespace, java.lang.Object pluginName, java.lang.Object viewName, ConstrainedProperty[] constraints, javax.servlet.ServletContext servletContext)

  Base constructor required to construct a UrlMapping instance
  Parameters:
    `controllerName` - The name of the controller
    `actionName` - The name of the action
    `constraints` - Any constraints that apply to the mapping
    servletContext

### AbstractUrlMapping

    protected AbstractUrlMapping(java.lang.Object viewName, ConstrainedProperty[] constraints, javax.servlet.ServletContext servletContext)

### AbstractUrlMapping

    protected AbstractUrlMapping(java.net.URI uri, ConstrainedProperty[] constraints, javax.servlet.ServletContext servletContext)

Method Detail

### getActionName

    public java.lang.Object getActionName()

  See Also:
    UrlMapping.getActionName

### getConstraints

    public ConstrainedProperty[] getConstraints()

  See Also:
    UrlMapping.getConstraints

### getControllerName

    public java.lang.Object getControllerName()

  See Also:
    UrlMapping.getControllerName

### getHttpMethod

    @java.lang.Override
    public java.lang.String getHttpMethod()

### getMappingName

    public java.lang.String getMappingName()

### getNamespace

    public java.lang.Object getNamespace()

### getPluginName

    public java.lang.Object getPluginName()

### getRedirectInfo

    public java.lang.Object getRedirectInfo()

### getVersion

    @java.lang.Override
    public java.lang.String getVersion()

### getViewName

    public java.lang.Object getViewName()

  See Also:
    UrlMapping.getViewName

### hasRuntimeVariable

    public boolean hasRuntimeVariable(java.lang.String name)

### isRestfulMapping

    public boolean isRestfulMapping()

### setMappingName

    public void setMappingName(java.lang.String name)

### setParameterValues

    @java.lang.SuppressWarnings({"unchecked","rawtypes"})
    public void setParameterValues(java.util.Map parameterValues)

### setParseRequest

    public void setParseRequest(boolean shouldParse)

### setRestfulMapping

    public void setRestfulMapping(boolean isREST)

Groovy Documentation