Class RequestPayload

  • All Implemented Interfaces:

    public class RequestPayload
    extends Object
    implements Serializable
    Container object used to contain optional information on content being parsed, passed to JsonParseException in case of exception being thrown; this may be useful for caller to display information on failure.
    See Also:
    Serialized Form
    • Constructor Detail

      • RequestPayload

        public RequestPayload​(byte[] bytes,
                              String charset)
      • RequestPayload

        public RequestPayload​(CharSequence str)
    • Method Detail

      • getRawPayload

        public Object getRawPayload()
        Returns the raw request payload object i.e, either byte[] or String
        Object which is a raw request payload i.e, either byte[] or String