Class DefaultURLModel

java.lang.Object
org.springframework.extensions.webscripts.DefaultURLModel
All Implemented Interfaces:
URLModel

public class DefaultURLModel extends Object implements URLModel
  • Constructor Details

    • DefaultURLModel

      protected DefaultURLModel(WebScriptRequest req)
      Construct
      Parameters:
      req - WebScriptRequest
  • Method Details

    • getServer

      public String getServer()
      Gets the Server Path e.g. http://host:port
      Specified by:
      getServer in interface URLModel
      Returns:
      server path
    • getContext

      public String getContext()
      Gets the Context Path e.g. /alfresco
      Specified by:
      getContext in interface URLModel
      Returns:
      context path
    • getServiceContext

      public String getServiceContext()
      Gets the Service Context Path e.g. /alfresco/service
      Specified by:
      getServiceContext in interface URLModel
      Returns:
      service context path
    • getService

      public String getService()
      Gets the Service Path e.g. /alfresco/service/search/keyword
      Specified by:
      getService in interface URLModel
      Returns:
      service path
    • getFull

      public String getFull()
      Gets the full path e.g. /alfresco/service/search/keyword?q=term
      Specified by:
      getFull in interface URLModel
      Returns:
      service path
    • getArgs

      public String getArgs()
      Gets the URL arguments (query string)
      Specified by:
      getArgs in interface URLModel
      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
      Specified by:
      getMatch in interface URLModel
      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
      Specified by:
      getExtension in interface URLModel
      Returns:
      extension path
    • getTemplate

      public String getTemplate()
      Gets the template form of this path
      Specified by:
      getTemplate in interface URLModel
      Returns:
      template form of path
    • getTemplateArgs

      public Map<String,String> getTemplateArgs()
      Gets the values of template variables
      Specified by:
      getTemplateArgs in interface URLModel
      Returns:
      map of value indexed by variable name (or the empty map)