Class DefaultURLModel

  • All Implemented Interfaces:
    URLModel

    public class DefaultURLModel
    extends java.lang.Object
    implements URLModel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getArgs()
      Gets the URL arguments (query string)
      java.lang.String getContext()
      Gets the Context Path e.g.
      java.lang.String getExtension()
      Gets the Service Extension Path e.g.
      java.lang.String getFull()
      Gets the full path e.g.
      java.lang.String getMatch()
      Gets the matching service path e.g.
      java.lang.String getServer()
      Gets the Server Path e.g.
      java.lang.String getService()
      Gets the Service Path e.g.
      java.lang.String getServiceContext()
      Gets the Service Context Path e.g.
      java.lang.String getTemplate()
      Gets the template form of this path
      java.util.Map<java.lang.String,​java.lang.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
    • 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
        Specified by:
        getServer in interface URLModel
        Returns:
        server path
      • getContext

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

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

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

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

        public java.lang.String getTemplate()
        Gets the template form of this path
        Specified by:
        getTemplate in interface URLModel
        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:
        getTemplateArgs in interface URLModel
        Returns:
        map of value indexed by variable name (or the empty map)