Package com.ptc.mvc.util
Class MVCUrlHelper
java.lang.Object
com.ptc.mvc.util.MVCUrlHelper
Helper to provide MVC urls
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetComponentId(javax.servlet.http.HttpServletRequest request) Get the ComponentId
Supported API: truestatic StringgetComponentShellURL(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.static StringgetComponentURL(String componentId) Generates a component URL based on componentId
Supported API: truestatic com.ptc.mvc.util.UriFormatNOTE: uri format is assumed to be the last thing in the uri *
Supported API: truestatic StringGet the url of the customizable homepage.static StringgetMVCHREF(String path, boolean fullyQualified) Generates a MVCfied HREF string to the identified resource.static StringGenerates a MVCfied relative path to the identified resource.static StringgetPathInfo(javax.servlet.http.HttpServletRequest request) Get the PathInfo
Supported API: truestatic StringgetTypeBasedComponentURL(String componentId) Generates a component URL based on componentId
Supported API: truestatic booleanisInfoPageRequest(javax.servlet.http.HttpServletRequest request) Is the request for an InfoPage?
Supported API: true
-
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
Get the PathInfo
Supported API: true- Parameters:
request-- Returns:
- String
- Throws:
WTException
-
getMVCURL
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
Get the url of the customizable homepage.
Supported API: true- Returns:
- MVCfied resource string
-
getMVCHREF
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
Generates a component URL based on componentId
Supported API: true- Parameters:
componentId-- Returns:
- url for the component
-
getComponentShellURL
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
Generates a component URL based on componentId
Supported API: true- Parameters:
componentId-- Returns:
- url for the component
-
getFormat
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
-