Class DefaultURLModel
java.lang.Object
org.springframework.extensions.webscripts.DefaultURLModel
- All Implemented Interfaces:
URLModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()Gets the URL arguments (query string)Gets the Context Path e.g.Gets the Service Extension Path e.g.getFull()Gets the full path e.g.getMatch()Gets the matching service path e.g.Gets the Server Path e.g.Gets the Service Path e.g.Gets the Service Context Path e.g.Gets the template form of this pathGets the values of template variables
-
Constructor Details
-
DefaultURLModel
Construct- Parameters:
req- WebScriptRequest
-
-
Method Details
-
getServer
Gets the Server Path e.g. http://host:port -
getContext
Gets the Context Path e.g. /alfresco- Specified by:
getContextin interfaceURLModel- Returns:
- context path
-
getServiceContext
Gets the Service Context Path e.g. /alfresco/service- Specified by:
getServiceContextin interfaceURLModel- Returns:
- service context path
-
getService
Gets the Service Path e.g. /alfresco/service/search/keyword- Specified by:
getServicein interfaceURLModel- Returns:
- service path
-
getFull
Gets the full path e.g. /alfresco/service/search/keyword?q=term -
getArgs
Gets the URL arguments (query string) -
getMatch
Gets the matching service path e.g. a) service registered path = /search/engine b) request path = /search/engine/external => /search/engine -
getExtension
Gets the Service Extension Path e.g. a) service registered path = /search/engine b) request path = /search/engine/external => /external- Specified by:
getExtensionin interfaceURLModel- Returns:
- extension path
-
getTemplate
Gets the template form of this path- Specified by:
getTemplatein interfaceURLModel- Returns:
- template form of path
-
getTemplateArgs
Gets the values of template variables- Specified by:
getTemplateArgsin interfaceURLModel- Returns:
- map of value indexed by variable name (or the empty map)
-