com.fasterxml.jackson.core.util

Class RequestPayload

  • All Implemented Interfaces:
    Serializable


    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.
    Since:
    2.8
    See Also:
    Serialized Form
    • Field Detail

      • _payloadAsBytes

        protected byte[] _payloadAsBytes
      • _charset

        protected String _charset
    • Constructor Detail

      • RequestPayload

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

      • getRawPayload

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

Copyright © 2008-2016 FasterXML. All Rights Reserved.