org.springmodules.validation.bean.context.web
Class ValidationContextUrlMapping

java.lang.Object
  extended by org.springmodules.validation.bean.context.web.ValidationContextUrlMapping

public class ValidationContextUrlMapping
extends Object

Represents a mapping between a url pattern to a list of validation context tokens.

Author:
Uri Boness

Constructor Summary
ValidationContextUrlMapping()
          Default contructor.
ValidationContextUrlMapping(String urlPattern, String[] contextTokens)
          Constructs a new mapping for the given url pattern to the given validation context tokens.
 
Method Summary
 String[] getContextTokens()
          Returns the validation context tokens of this mapping.
 String getUrlPattern()
          Returns the url pattern.
 void setContextTokens(String[] contextTokens)
          Sets the validation context tokens for this mapping.
 void setUrlPattern(String urlPattern)
          Sets the url pattern for this mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationContextUrlMapping

public ValidationContextUrlMapping()
Default contructor.


ValidationContextUrlMapping

public ValidationContextUrlMapping(String urlPattern,
                                   String[] contextTokens)
Constructs a new mapping for the given url pattern to the given validation context tokens.

Parameters:
urlPattern - The given url pattern.
contextTokens - The mapped validation context tokens.
Method Detail

getUrlPattern

public String getUrlPattern()
Returns the url pattern.

Returns:
The url pattern.

setUrlPattern

public void setUrlPattern(String urlPattern)
Sets the url pattern for this mapping.

Parameters:
urlPattern - The url pattern for this mapping.

getContextTokens

public String[] getContextTokens()
Returns the validation context tokens of this mapping.

Returns:
The validation context tokens of this mapping.

setContextTokens

public void setContextTokens(String[] contextTokens)
Sets the validation context tokens for this mapping.

Parameters:
contextTokens - The validation context tokens for this mapping.


Copyright © 2009. All Rights Reserved.