Package com.ptc.core.components.util
Class RequestHelper
java.lang.Object
com.ptc.core.components.util.RequestHelper
Provides utility APIs for request.
Supported API: true *
Extendable: false
Supported API: true *
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.ptc.mvc.util.UriFormatgetFormat(jakarta.servlet.http.HttpServletRequest httpRequest) Returns the format looking at
Accept header, else Request URI, otherwise null if no valid format request was made
Supported API: true
-
Method Details
-
getFormat
public static com.ptc.mvc.util.UriFormat getFormat(jakarta.servlet.http.HttpServletRequest httpRequest) Returns the format looking at
Accept header, else Request URI, otherwise null if no valid format request was made
Supported API: true- Parameters:
httpRequest-- Returns:
- com.ptc.mvc.util.Format
-