Package com.fasterxml.jackson.core.util
Class RequestPayload
- java.lang.Object
-
- com.fasterxml.jackson.core.util.RequestPayload
-
- All Implemented Interfaces:
java.io.Serializable
public class RequestPayload extends java.lang.Object implements java.io.Serializable
Container object used to contain optional information on content being parsed, passed toJsonParseException
in case of exception being thrown; this may be useful for caller to display information on failure.- Since:
- 2.8
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestPayload(byte[] bytes, java.lang.String charset)
RequestPayload(java.lang.CharSequence str)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getRawPayload()
Returns the raw request payload object i.e, either byte[] or Stringjava.lang.String
toString()
-
-
-
Method Detail
-
getRawPayload
public java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-