Class BsonResponse

  • Direct Known Subclasses:
    MongoResponse

    public class BsonResponse
    extends ServiceResponse<org.bson.BsonValue>
    ServiceResponse implementation backed by BsonValue
    Author:
    Andrea Di Cesare
    • Constructor Detail

      • BsonResponse

        protected BsonResponse​(io.undertow.server.HttpServerExchange exchange)
    • Method Detail

      • init

        public static BsonResponse init​(io.undertow.server.HttpServerExchange exchange)
      • of

        public static BsonResponse of​(io.undertow.server.HttpServerExchange exchange)
      • readContent

        public String readContent()
        Description copied from class: ServiceResponse
        Reads the content as a String. This method is used by ResponseSender to generate the response content to send to the client.
        Specified by:
        readContent in class ServiceResponse<org.bson.BsonValue>
        Returns:
        the content as string