java.lang.Object
dev.mccue.jdk.httpserver.json.JsonBody
- All Implemented Interfaces:
dev.mccue.jdk.httpserver.Body
An implementation of
Body which will respond with Json.-
Method Details
-
of
Creates aJsonBody.- Parameters:
jsonEncodable- The JSON to use.- Returns:
- A
JsonBody
-
writeTo
- Specified by:
writeToin interfacedev.mccue.jdk.httpserver.Body- Throws:
IOException
-
responseLength
public dev.mccue.jdk.httpserver.ResponseLength responseLength()- Specified by:
responseLengthin interfacedev.mccue.jdk.httpserver.Body
-
defaultContentType
- Specified by:
defaultContentTypein interfacedev.mccue.jdk.httpserver.Body
-
equals
-
hashCode
public int hashCode() -
toString
-