Class DefaultURLModel
- java.lang.Object
-
- org.springframework.extensions.webscripts.DefaultURLModel
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultURLModel(WebScriptRequest req)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetArgs()Gets the URL arguments (query string)java.lang.StringgetContext()Gets the Context Path e.g.java.lang.StringgetExtension()Gets the Service Extension Path e.g.java.lang.StringgetFull()Gets the full path e.g.java.lang.StringgetMatch()Gets the matching service path e.g.java.lang.StringgetServer()Gets the Server Path e.g.java.lang.StringgetService()Gets the Service Path e.g.java.lang.StringgetServiceContext()Gets the Service Context Path e.g.java.lang.StringgetTemplate()Gets the template form of this pathjava.util.Map<java.lang.String,java.lang.String>getTemplateArgs()Gets the values of template variables
-
-
-
Constructor Detail
-
DefaultURLModel
protected DefaultURLModel(WebScriptRequest req)
Construct- Parameters:
req- WebScriptRequest
-
-
Method Detail
-
getServer
public java.lang.String getServer()
Gets the Server Path e.g. http://host:port
-
getContext
public java.lang.String getContext()
Gets the Context Path e.g. /alfresco- Specified by:
getContextin interfaceURLModel- Returns:
- context path
-
getServiceContext
public java.lang.String getServiceContext()
Gets the Service Context Path e.g. /alfresco/service- Specified by:
getServiceContextin interfaceURLModel- Returns:
- service context path
-
getService
public java.lang.String getService()
Gets the Service Path e.g. /alfresco/service/search/keyword- Specified by:
getServicein interfaceURLModel- Returns:
- service path
-
getFull
public java.lang.String getFull()
Gets the full path e.g. /alfresco/service/search/keyword?q=term
-
getArgs
public java.lang.String getArgs()
Gets the URL arguments (query string)
-
getMatch
public java.lang.String getMatch()
Gets the matching service path e.g. a) service registered path = /search/engine b) request path = /search/engine/external => /search/engine
-
getExtension
public java.lang.String 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
public java.lang.String getTemplate()
Gets the template form of this path- Specified by:
getTemplatein interfaceURLModel- Returns:
- template form of path
-
getTemplateArgs
public java.util.Map<java.lang.String,java.lang.String> getTemplateArgs()
Gets the values of template variables- Specified by:
getTemplateArgsin interfaceURLModel- Returns:
- map of value indexed by variable name (or the empty map)
-
-