Modifier and Type | Method and Description |
---|---|
boolean |
canFormat()
Checks if formatting the output is supported.
|
String |
formatHTTPReply()
Formats the URLConnection HTTP headers reply into a String.
|
String |
getAcceptedContent()
Gets the accepted contents.
|
String |
getDescription()
Gets the format description.
|
String |
getRawOutput(boolean format)
Gets the raw text data from the reply.
|
boolean |
isHandled(String type)
Checks if a content type is handled by this reply.
|
void |
readReply(RESTfulReply reply,
String data)
Called to format the request for this reply content, i.e.
|
String getAcceptedContent()
boolean isHandled(String type)
type
- The content type from the HTTP header "Content-Type", without "charset".void readReply(RESTfulReply reply, String data) throws IOException
reply
- The reply instance.data
- The String data from the reply.IOException
- For I/O errors.boolean canFormat()
String getDescription()
String formatHTTPReply()
String getRawOutput(boolean format)
format
- Flag to format the output (used for JSON and XML).iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.