Class MongoServiceAttachments

java.lang.Object
org.restheart.utils.MongoServiceAttachments

public class MongoServiceAttachments extends Object
Util class for exchange attachments related to the MongoService
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • MongoServiceAttachments

      public MongoServiceAttachments()
  • Method Details

    • attachedBsonContent

      public static org.bson.BsonValue attachedBsonContent(io.undertow.server.HttpServerExchange exchange)
      Parameters:
      exchange -
      Returns:
      the BsonValue attached to the exchange
    • attachBsonContent

      public static void attachBsonContent(io.undertow.server.HttpServerExchange exchange, org.bson.BsonValue value)
      set the intialized flag for MongoRequest
      Parameters:
      exchange -
      value - the BsonValue to attache to the exchange