public interface DynamicType
| Modifier and Type | Method and Description |
|---|---|
HttpHeaders |
getHeaders()
Get response headers for the HTTP response.
|
InputStream |
getRawBody()
Get the raw stream for the response body.
|
<T> T |
parse(Class<T> cls)
Parse response as instance of class cls.
|
boolean |
parseAsBoolean()
Parse response as boolean.
|
byte |
parseAsByte()
Parse response as boolean.
|
char |
parseAsCharacter()
Parse response as character.
|
Map<String,Object> |
parseAsDictionary()
Parse response as a map of keys and values.
|
double |
parseAsDouble()
Parse response as double.
|
float |
parseAsFloat()
Parse response as float.
|
int |
parseAsInteger()
Parse response as integer.
|
long |
parseAsLong()
Parse response as long.
|
short |
parseAsShort()
Parse response as short.
|
String |
parseAsString()
Parse response as string.
|
<T> T parse(Class<T> cls) throws ParseException
T - The type of class to be parsedcls - Class to be parsedParseException - Signals if a parse exception occuredboolean parseAsBoolean()
throws ParseException
ParseException - Signals if a parse exception occuredbyte parseAsByte()
throws ParseException
ParseException - Signals if a parse exception occuredchar parseAsCharacter()
throws ParseException
ParseException - Signals if a parse exception occuredfloat parseAsFloat()
throws ParseException
ParseException - Signals if a parse exception occuredint parseAsInteger()
throws ParseException
ParseException - Signals if a parse exception occuredlong parseAsLong()
throws ParseException
ParseException - Signals if a parse exception occuredshort parseAsShort()
throws ParseException
ParseException - Signals if a parse exception occureddouble parseAsDouble()
throws ParseException
ParseException - Signals if a parse exception occuredString parseAsString() throws ParseException
ParseException - Signals if a parse exception occuredMap<String,Object> parseAsDictionary() throws ParseException
ParseException - Signals if a parse exception occuredInputStream getRawBody()
HttpHeaders getHeaders()
Copyright © 2025. All rights reserved.