org.springframework.extensions.webscripts
Class URLModel

java.lang.Object
  extended by org.springframework.extensions.webscripts.URLModel

public final class URLModel
extends Object

Script / Template Model representing Web Script URLs This class is immutable.

Author:
davidc

Method Summary
 String getArgs()
          Gets the URL arguments (query string)
 String getContext()
          Gets the Context Path e.g.
 String getExtension()
          Gets the Service Extension Path e.g.
 String getFull()
          Gets the full path e.g.
 String getMatch()
          Gets the matching service path e.g.
 String getServer()
          Gets the Server Path e.g.
 String getService()
          Gets the Service Path e.g.
 String getServiceContext()
          Gets the Service Context Path e.g.
 String getTemplate()
          Gets the template form of this path
 Map<String,String> getTemplateArgs()
          Gets the values of template variables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServer

public String getServer()
Gets the Server Path e.g. http://host:port

Returns:
server path

getContext

public String getContext()
Gets the Context Path e.g. /alfresco

Returns:
context path

getServiceContext

public String getServiceContext()
Gets the Service Context Path e.g. /alfresco/service

Returns:
service context path

getService

public String getService()
Gets the Service Path e.g. /alfresco/service/search/keyword

Returns:
service path

getFull

public String getFull()
Gets the full path e.g. /alfresco/service/search/keyword?q=term

Returns:
service path

getArgs

public String getArgs()
Gets the URL arguments (query string)

Returns:
args (query string)

getMatch

public String getMatch()
Gets the matching service path e.g. a) service registered path = /search/engine b) request path = /search/engine/external => /search/engine

Returns:
matching path

getExtension

public String getExtension()
Gets the Service Extension Path e.g. a) service registered path = /search/engine b) request path = /search/engine/external => /external

Returns:
extension path

getTemplate

public String getTemplate()
Gets the template form of this path

Returns:
template form of path

getTemplateArgs

public Map<String,String> getTemplateArgs()
Gets the values of template variables

Returns:
map of value indexed by variable name (or the empty map)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.