public class RequestPayload extends Object implements Serializable
JsonParseException
in case of
exception being thrown; this may be useful for caller to display
information on failure.Modifier and Type | Field and Description |
---|---|
protected String |
_charset |
protected byte[] |
_payloadAsBytes |
protected CharSequence |
_payloadAsText |
Constructor and Description |
---|
RequestPayload(byte[] bytes,
String charset) |
RequestPayload(CharSequence str) |
Modifier and Type | Method and Description |
---|---|
Object |
getRawPayload()
Returns the raw request payload object i.e, either byte[] or String
|
String |
toString() |
protected byte[] _payloadAsBytes
protected CharSequence _payloadAsText
protected String _charset
public RequestPayload(byte[] bytes, String charset)
public RequestPayload(CharSequence str)
Copyright © 2008–2018 FasterXML. All rights reserved.