public abstract class AbstractDecoder extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractDecoder(EncodingDef encodingDef)
Creates a new AbstractDecoder instance.
|
Modifier and Type | Method and Description |
---|---|
List<JsonNode> |
decode(String content)
Returns the possible JSON representations of the given content.
|
abstract List<JsonNode> |
decodeArray(String content)
Returns the possible JSON array representations of the given content.
|
Optional<JsonNode> |
decodeBoolean(String content)
Returns the JSON boolean representation of the given content.
|
Optional<JsonNode> |
decodeNull(String content)
Returns the JSON null representation of the given content.
|
Optional<JsonNode> |
decodeNumber(String content)
Returns the JSON number representation of the given content.
|
abstract List<JsonNode> |
decodeObject(String content)
Returns the possible JSON object representations of the given content.
|
Optional<JsonNode> |
decodeString(String content)
Returns the JSON string representation of the given content.
|
protected String |
decodeUrl(String content)
Decodes an application/x-www-form-urlencoded string.
|
List<JsonNode> |
decodeValue(String content)
Returns the possible JSON value representations of the given content.
|
EncodingDef |
getEncodingDef()
Returns the content definition for this decoder.
|
String |
getStyle()
Returns the serialization style of this decoder.
|
boolean |
isExploded()
Returns true if this decoder expects objects to be encoded in exploded form.
|
protected AbstractDecoder(EncodingDef encodingDef)
public boolean isExploded()
public String getStyle()
public EncodingDef getEncodingDef()
public List<JsonNode> decode(String content)
public abstract List<JsonNode> decodeObject(String content)
public abstract List<JsonNode> decodeArray(String content)
public List<JsonNode> decodeValue(String content)
public Optional<JsonNode> decodeNumber(String content)
public Optional<JsonNode> decodeBoolean(String content)
public Optional<JsonNode> decodeString(String content)
public Optional<JsonNode> decodeNull(String content)
Copyright © 2024 The Cornutum Project. All rights reserved.