Class MVCUrlHelper

java.lang.Object
com.ptc.mvc.util.MVCUrlHelper

public class MVCUrlHelper extends Object
Helper to provide MVC urls

Supported API: true

Extendable: false
  • Method Details

    • isInfoPageRequest

      public static boolean isInfoPageRequest(javax.servlet.http.HttpServletRequest request) throws WTException
      Is the request for an InfoPage?

      Supported API: true
      Parameters:
      request -
      Returns:
      boolean
      Throws:
      WTException
    • getComponentId

      public static String getComponentId(javax.servlet.http.HttpServletRequest request) throws WTException
      Get the ComponentId

      Supported API: true
      Parameters:
      request -
      Returns:
      String
      Throws:
      WTException
    • getPathInfo

      public static String getPathInfo(javax.servlet.http.HttpServletRequest request) throws WTException
      Get the PathInfo

      Supported API: true
      Parameters:
      request -
      Returns:
      String
      Throws:
      WTException
    • getMVCURL

      public static String getMVCURL(String path)
      Generates a MVCfied relative path to the identified resource. Used for converting legacy request, so that it can pass through MVC controller.

      Supported API: true
      Parameters:
      path - resource path
      Returns:
      MVCfied resource string
    • getHomepageURL

      public static String getHomepageURL()
      Get the url of the customizable homepage.

      Supported API: true
      Returns:
      MVCfied resource string
    • getMVCHREF

      public static String getMVCHREF(String path, boolean fullyQualified)
      Generates a MVCfied HREF string to the identified resource. Internally uses getHREF() method from wt.httpgw.URLFactory class to generate HREF.

      Supported API: true
      Parameters:
      path -
      fullyQualified -
      Returns:
      String
    • getComponentURL

      public static String getComponentURL(String componentId)
      Generates a component URL based on componentId

      Supported API: true
      Parameters:
      componentId -
      Returns:
      url for the component
    • getComponentShellURL

      public static String getComponentShellURL(String componentId)
      Generates a component URL for use in the shell, based on componentId
      Useful for generating a URL to be used as an href attribute.
      Supported API: true
      Parameters:
      componentId -
      Returns:
      url for the component
    • getTypeBasedComponentURL

      public static String getTypeBasedComponentURL(String componentId)
      Generates a component URL based on componentId

      Supported API: true
      Parameters:
      componentId -
      Returns:
      url for the component
    • getFormat

      public static com.ptc.mvc.util.UriFormat getFormat(String uri)
      NOTE: uri format is assumed to be the last thing in the uri *

      Supported API: true
      Returns:
      the format of the given uri, otherwise null if no valid format request was made