Top Description Fields Constructors Methods
com.fasterxml.jackson.core.util

public Class RequestPayload

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.IOException

Container object used to contain optional information on content being parsed, passed to com.fasterxml.jackson.core.JsonParseException in case of exception being thrown; this may be useful for caller to display information on failure.
Since
2.8

Field Summary

Modifier and TypeField and Description
protected String
protected byte[]
protected CharSequence
private static final long

Constructor Summary

AccessConstructor and Description
public
RequestPayload(byte[] bytes, String charset)

public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

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

Returns the raw request payload object i.e, either byte[] or String

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_charsetback to summary
protected String _charset
_payloadAsBytesback to summary
protected byte[] _payloadAsBytes
_payloadAsTextback to summary
protected CharSequence _payloadAsText
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

RequestPayloadback to summary
public RequestPayload(byte[] bytes, String charset)
RequestPayloadback to summary
public RequestPayload(CharSequence str)

Method Detail

getRawPayloadback to summary
public Object getRawPayload()

Returns the raw request payload object i.e, either byte[] or String

Returns:Object

Object which is a raw request payload i.e, either byte[] or String

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override