org.shredzone.repowatch.web.util
Class RequestMappingResolver

java.lang.Object
  extended by org.shredzone.repowatch.web.util.RequestMappingResolver

public class RequestMappingResolver
extends Object

Resolves the URL according to the RequestMapping pattern.

Note that Spring is about to bring a similar functionality, see here . If it is available, this class should be removed and replaced by the official solution.

Version:
$Revision: 317 $

Nested Class Summary
static class RequestMappingResolver.RequestParts
          This class contains the single parts of a resolved URL.
 
Constructor Summary
RequestMappingResolver(String url)
          Creates a new RequestMappingResolver.
 
Method Summary
 RequestMappingResolver.RequestParts getRequestParts(javax.servlet.http.HttpServletRequest req)
          Gets the RequestMappingResolver.RequestParts object for the given request.
 RequestMappingResolver.RequestParts getRequestParts(String request)
          Gets the RequestMappingResolver.RequestParts object for the given request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMappingResolver

public RequestMappingResolver(String url)
Creates a new RequestMappingResolver.

Parameters:
url - The URL given to the corresponding RequestMapping annotation.
Method Detail

getRequestParts

public RequestMappingResolver.RequestParts getRequestParts(javax.servlet.http.HttpServletRequest req)
Gets the RequestMappingResolver.RequestParts object for the given request.

Parameters:
req - HttpServletRequest
Returns:
RequestMappingResolver.RequestParts with the results

getRequestParts

public RequestMappingResolver.RequestParts getRequestParts(String request)
Gets the RequestMappingResolver.RequestParts object for the given request.

Parameters:
request - Request part (requestURI minus contextPath).
Returns:
RequestMappingResolver.RequestParts with the results


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