Class RequestHelper

java.lang.Object
com.ptc.core.components.util.RequestHelper

public class RequestHelper extends Object
Provides utility APIs for request.
Supported API: true *
Extendable: false
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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