org.shredzone.repowatch.web.util
Class RequestMappingResolver.RequestParts

java.lang.Object
  extended by org.shredzone.repowatch.web.util.RequestMappingResolver.RequestParts
Enclosing class:
RequestMappingResolver

public static class RequestMappingResolver.RequestParts
extends Object

This class contains the single parts of a resolved URL.


Constructor Summary
RequestMappingResolver.RequestParts(String[] parts)
          Creates a new RequestParts object.
 
Method Summary
 String getPart(int index)
          Gets the part with a given index.
 boolean hasParts()
          Checks if this RequestParts contains any parts.
 int partCount()
          Counts the number of parts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMappingResolver.RequestParts

public RequestMappingResolver.RequestParts(String[] parts)
Creates a new RequestParts object.

Parameters:
parts - The single request parts.
Method Detail

hasParts

public boolean hasParts()
Checks if this RequestParts contains any parts. If false, the URL usually did not match the RequestMapping pattern.

Returns:
true: Request matched, false: Request did not match

partCount

public int partCount()
Counts the number of parts.

Returns:
Number of parts

getPart

public String getPart(int index)
Gets the part with a given index. This is the number of the desired '*' in the RequestMapping pattern, starting from 0.

Parameters:
index - Number of part, starting from 0.
Returns:
Part string.


Copyright © 2007-2011 shredzone.org. All Rights Reserved.