Trait/Object

play.modules.reactivemongo

MongoController

Related Docs: object MongoController | package reactivemongo

Permalink

trait MongoController extends Controller

A mixin for controllers that will provide MongoDB actions.

Self Type
MongoController with ReactiveMongoComponents
Linear Supertypes
Controller, Rendering, RequestExtractors, AcceptExtractors, ContentTypes, HeaderNames, api.http.Status, HttpProtocol, BodyParsers, Results, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoController
  2. Controller
  3. Rendering
  4. RequestExtractors
  5. AcceptExtractors
  6. ContentTypes
  7. HeaderNames
  8. Status
  9. HttpProtocol
  10. BodyParsers
  11. Results
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Status extends Result

    Permalink
    Definition Classes
    Results

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ACCEPT: String

    Permalink
    Definition Classes
    HeaderNames
  5. val ACCEPTED: Int

    Permalink
    Definition Classes
    Status
  6. val ACCEPT_CHARSET: String

    Permalink
    Definition Classes
    HeaderNames
  7. val ACCEPT_ENCODING: String

    Permalink
    Definition Classes
    HeaderNames
  8. val ACCEPT_LANGUAGE: String

    Permalink
    Definition Classes
    HeaderNames
  9. val ACCEPT_RANGES: String

    Permalink
    Definition Classes
    HeaderNames
  10. val ACCESS_CONTROL_ALLOW_CREDENTIALS: String

    Permalink
    Definition Classes
    HeaderNames
  11. val ACCESS_CONTROL_ALLOW_HEADERS: String

    Permalink
    Definition Classes
    HeaderNames
  12. val ACCESS_CONTROL_ALLOW_METHODS: String

    Permalink
    Definition Classes
    HeaderNames
  13. val ACCESS_CONTROL_ALLOW_ORIGIN: String

    Permalink
    Definition Classes
    HeaderNames
  14. val ACCESS_CONTROL_EXPOSE_HEADERS: String

    Permalink
    Definition Classes
    HeaderNames
  15. val ACCESS_CONTROL_MAX_AGE: String

    Permalink
    Definition Classes
    HeaderNames
  16. val ACCESS_CONTROL_REQUEST_HEADERS: String

    Permalink
    Definition Classes
    HeaderNames
  17. val ACCESS_CONTROL_REQUEST_METHOD: String

    Permalink
    Definition Classes
    HeaderNames
  18. val AGE: String

    Permalink
    Definition Classes
    HeaderNames
  19. val ALLOW: String

    Permalink
    Definition Classes
    HeaderNames
  20. val AUTHORIZATION: String

    Permalink
    Definition Classes
    HeaderNames
  21. val Accepted: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  22. val BAD_GATEWAY: Int

    Permalink
    Definition Classes
    Status
  23. val BAD_REQUEST: Int

    Permalink
    Definition Classes
    Status
  24. val BINARY: String

    Permalink
    Definition Classes
    ContentTypes
  25. val BadGateway: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  26. val BadRequest: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  27. val CACHE_CONTROL: String

    Permalink
    Definition Classes
    HeaderNames
  28. val CACHE_MANIFEST: String

    Permalink
    Definition Classes
    ContentTypes
  29. val CHUNKED: String

    Permalink
    Definition Classes
    HttpProtocol
  30. val CONFLICT: Int

    Permalink
    Definition Classes
    Status
  31. val CONNECTION: String

    Permalink
    Definition Classes
    HeaderNames
  32. val CONTENT_DISPOSITION: String

    Permalink
    Definition Classes
    HeaderNames
  33. val CONTENT_DISPOSITION_ATTACHMENT: String

    Permalink
  34. val CONTENT_DISPOSITION_INLINE: String

    Permalink
  35. val CONTENT_ENCODING: String

    Permalink
    Definition Classes
    HeaderNames
  36. val CONTENT_LANGUAGE: String

    Permalink
    Definition Classes
    HeaderNames
  37. val CONTENT_LENGTH: String

    Permalink
    Definition Classes
    HeaderNames
  38. val CONTENT_LOCATION: String

    Permalink
    Definition Classes
    HeaderNames
  39. val CONTENT_MD5: String

    Permalink
    Definition Classes
    HeaderNames
  40. val CONTENT_RANGE: String

    Permalink
    Definition Classes
    HeaderNames
  41. val CONTENT_TRANSFER_ENCODING: String

    Permalink
    Definition Classes
    HeaderNames
  42. val CONTENT_TYPE: String

    Permalink
    Definition Classes
    HeaderNames
  43. val CONTINUE: Int

    Permalink
    Definition Classes
    Status
  44. val COOKIE: String

    Permalink
    Definition Classes
    HeaderNames
  45. val CREATED: Int

    Permalink
    Definition Classes
    Status
  46. def CSS(implicit codec: Codec): String

    Permalink
    Definition Classes
    ContentTypes
  47. val Conflict: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  48. val Created: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  49. val DATE: String

    Permalink
    Definition Classes
    HeaderNames
  50. val ETAG: String

    Permalink
    Definition Classes
    HeaderNames
  51. def EVENT_STREAM(implicit codec: Codec): String

    Permalink
    Definition Classes
    ContentTypes
  52. val EXPECT: String

    Permalink
    Definition Classes
    HeaderNames
  53. val EXPECTATION_FAILED: Int

    Permalink
    Definition Classes
    Status
  54. val EXPIRES: String

    Permalink
    Definition Classes
    HeaderNames
  55. val EntityTooLarge: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  56. val ExpectationFailed: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  57. val FAILED_DEPENDENCY: Int

    Permalink
    Definition Classes
    Status
  58. val FORBIDDEN: Int

    Permalink
    Definition Classes
    Status
  59. val FORM: String

    Permalink
    Definition Classes
    ContentTypes
  60. val FORWARDED: String

    Permalink
    Definition Classes
    HeaderNames
  61. val FOUND: Int

    Permalink
    Definition Classes
    Status
  62. val FROM: String

    Permalink
    Definition Classes
    HeaderNames
  63. val FailedDependency: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  64. val Forbidden: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  65. def Found(url: String): Result

    Permalink
    Definition Classes
    Results
  66. val GATEWAY_TIMEOUT: Int

    Permalink
    Definition Classes
    Status
  67. val GONE: Int

    Permalink
    Definition Classes
    Status
  68. val GatewayTimeout: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  69. val Gone: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  70. val HOST: String

    Permalink
    Definition Classes
    HeaderNames
  71. def HTML(implicit codec: Codec): String

    Permalink
    Definition Classes
    ContentTypes
  72. val HTTP_1_0: String

    Permalink
    Definition Classes
    HttpProtocol
  73. val HTTP_1_1: String

    Permalink
    Definition Classes
    HttpProtocol
  74. val HTTP_VERSION_NOT_SUPPORTED: Int

    Permalink
    Definition Classes
    Status
  75. val HttpVersionNotSupported: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  76. val IF_MATCH: String

    Permalink
    Definition Classes
    HeaderNames
  77. val IF_MODIFIED_SINCE: String

    Permalink
    Definition Classes
    HeaderNames
  78. val IF_NONE_MATCH: String

    Permalink
    Definition Classes
    HeaderNames
  79. val IF_RANGE: String

    Permalink
    Definition Classes
    HeaderNames
  80. val IF_UNMODIFIED_SINCE: String

    Permalink
    Definition Classes
    HeaderNames
  81. val INSUFFICIENT_STORAGE: Int

    Permalink
    Definition Classes
    Status
  82. val INTERNAL_SERVER_ERROR: Int

    Permalink
    Definition Classes
    Status
  83. val InsufficientStorage: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  84. val InternalServerError: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  85. def JAVASCRIPT(implicit codec: Codec): String

    Permalink
    Definition Classes
    ContentTypes
  86. val JSON: String

    Permalink
    Definition Classes
    ContentTypes
  87. val LAST_MODIFIED: String

    Permalink
    Definition Classes
    HeaderNames
  88. val LENGTH_REQUIRED: Int

    Permalink
    Definition Classes
    Status
  89. val LOCATION: String

    Permalink
    Definition Classes
    HeaderNames
  90. val LOCKED: Int

    Permalink
    Definition Classes
    Status
  91. val Locked: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  92. val MAX_FORWARDS: String

    Permalink
    Definition Classes
    HeaderNames
  93. val METHOD_NOT_ALLOWED: Int

    Permalink
    Definition Classes
    Status
  94. val MOVED_PERMANENTLY: Int

    Permalink
    Definition Classes
    Status
  95. val MULTIPLE_CHOICES: Int

    Permalink
    Definition Classes
    Status
  96. val MULTI_STATUS: Int

    Permalink
    Definition Classes
    Status
  97. val MethodNotAllowed: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  98. def MovedPermanently(url: String): Result

    Permalink
    Definition Classes
    Results
  99. val MultiStatus: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  100. val NON_AUTHORITATIVE_INFORMATION: Int

    Permalink
    Definition Classes
    Status
  101. val NOT_ACCEPTABLE: Int

    Permalink
    Definition Classes
    Status
  102. val NOT_FOUND: Int

    Permalink
    Definition Classes
    Status
  103. val NOT_IMPLEMENTED: Int

    Permalink
    Definition Classes
    Status
  104. val NOT_MODIFIED: Int

    Permalink
    Definition Classes
    Status
  105. val NO_CONTENT: Int

    Permalink
    Definition Classes
    Status
  106. val NoContent: Result

    Permalink
    Definition Classes
    Results
  107. val NonAuthoritativeInformation: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  108. val NotAcceptable: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  109. val NotFound: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  110. val NotImplemented: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  111. val NotModified: Result

    Permalink
    Definition Classes
    Results
  112. val OK: Int

    Permalink
    Definition Classes
    Status
  113. val ORIGIN: String

    Permalink
    Definition Classes
    HeaderNames
  114. val Ok: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  115. val PARTIAL_CONTENT: Int

    Permalink
    Definition Classes
    Status
  116. val PAYMENT_REQUIRED: Int

    Permalink
    Definition Classes
    Status
  117. val PERMANENT_REDIRECT: Int

    Permalink
    Definition Classes
    Status
  118. val PRAGMA: String

    Permalink
    Definition Classes
    HeaderNames
  119. val PRECONDITION_FAILED: Int

    Permalink
    Definition Classes
    Status
  120. val PROXY_AUTHENTICATE: String

    Permalink
    Definition Classes
    HeaderNames
  121. val PROXY_AUTHENTICATION_REQUIRED: Int

    Permalink
    Definition Classes
    Status
  122. val PROXY_AUTHORIZATION: String

    Permalink
    Definition Classes
    HeaderNames
  123. val PartialContent: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  124. val PaymentRequired: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  125. def PermanentRedirect(url: String): Result

    Permalink
    Definition Classes
    Results
  126. val PreconditionFailed: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  127. val RANGE: String

    Permalink
    Definition Classes
    HeaderNames
  128. val REFERER: String

    Permalink
    Definition Classes
    HeaderNames
  129. val REQUESTED_RANGE_NOT_SATISFIABLE: Int

    Permalink
    Definition Classes
    Status
  130. val REQUEST_ENTITY_TOO_LARGE: Int

    Permalink
    Definition Classes
    Status
  131. val REQUEST_TIMEOUT: Int

    Permalink
    Definition Classes
    Status
  132. val REQUEST_URI_TOO_LONG: Int

    Permalink
    Definition Classes
    Status
  133. val RESET_CONTENT: Int

    Permalink
    Definition Classes
    Status
  134. val RETRY_AFTER: String

    Permalink
    Definition Classes
    HeaderNames
  135. def Redirect(call: Call, status: Int): Result

    Permalink
    Definition Classes
    Results
  136. def Redirect(call: Call): Result

    Permalink
    Definition Classes
    Results
  137. def Redirect(url: String, queryString: Map[String, Seq[String]], status: Int): Result

    Permalink
    Definition Classes
    Results
  138. def Redirect(url: String, status: Int): Result

    Permalink
    Definition Classes
    Results
  139. val RequestTimeout: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  140. val ResetContent: Result

    Permalink
    Definition Classes
    Results
  141. val SEE_OTHER: Int

    Permalink
    Definition Classes
    Status
  142. val SERVER: String

    Permalink
    Definition Classes
    HeaderNames
  143. val SERVICE_UNAVAILABLE: Int

    Permalink
    Definition Classes
    Status
  144. val SET_COOKIE: String

    Permalink
    Definition Classes
    HeaderNames
  145. val SET_COOKIE2: String

    Permalink
    Definition Classes
    HeaderNames
  146. val SWITCHING_PROTOCOLS: Int

    Permalink
    Definition Classes
    Status
  147. def SeeOther(url: String): Result

    Permalink
    Definition Classes
    Results
  148. val ServiceUnavailable: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  149. def Status(code: Int): (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  150. val TE: String

    Permalink
    Definition Classes
    HeaderNames
  151. val TEMPORARY_REDIRECT: Int

    Permalink
    Definition Classes
    Status
  152. def TEXT(implicit codec: Codec): String

    Permalink
    Definition Classes
    ContentTypes
  153. val TODO: Action[AnyContent]

    Permalink
    Definition Classes
    Controller
  154. val TOO_MANY_REQUESTS: Int

    Permalink
    Definition Classes
    Status
  155. val TRAILER: String

    Permalink
    Definition Classes
    HeaderNames
  156. val TRANSFER_ENCODING: String

    Permalink
    Definition Classes
    HeaderNames
  157. def TemporaryRedirect(url: String): Result

    Permalink
    Definition Classes
    Results
  158. val TooManyRequests: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  159. val UNAUTHORIZED: Int

    Permalink
    Definition Classes
    Status
  160. val UNPROCESSABLE_ENTITY: Int

    Permalink
    Definition Classes
    Status
  161. val UNSUPPORTED_MEDIA_TYPE: Int

    Permalink
    Definition Classes
    Status
  162. val UPGRADE: String

    Permalink
    Definition Classes
    HeaderNames
  163. val UPGRADE_REQUIRED: Int

    Permalink
    Definition Classes
    Status
  164. val USER_AGENT: String

    Permalink
    Definition Classes
    HeaderNames
  165. val USE_PROXY: Int

    Permalink
    Definition Classes
    Status
  166. val Unauthorized: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  167. val UnprocessableEntity: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  168. val UnsupportedMediaType: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  169. val UriTooLong: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
  170. val VARY: String

    Permalink
    Definition Classes
    HeaderNames
  171. val VIA: String

    Permalink
    Definition Classes
    HeaderNames
  172. val WARNING: String

    Permalink
    Definition Classes
    HeaderNames
  173. val WWW_AUTHENTICATE: String

    Permalink
    Definition Classes
    HeaderNames
  174. def XML(implicit codec: Codec): String

    Permalink
    Definition Classes
    ContentTypes
  175. val X_FORWARDED_FOR: String

    Permalink
    Definition Classes
    HeaderNames
  176. val X_FORWARDED_HOST: String

    Permalink
    Definition Classes
    HeaderNames
  177. val X_FORWARDED_PORT: String

    Permalink
    Definition Classes
    HeaderNames
  178. val X_FORWARDED_PROTO: String

    Permalink
    Definition Classes
    HeaderNames
  179. val X_REQUESTED_WITH: String

    Permalink
    Definition Classes
    HeaderNames
  180. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  181. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  182. def connection: MongoConnection

    Permalink

    Returns the current MongoConnection instance (the connection pool manager).

  183. def database: Future[DefaultDB]

    Permalink

    Returns the default database (as specified in application.conf).

  184. def driver: MongoDriver

    Permalink

    Returns the current instance of the driver.

  185. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  186. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  187. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  188. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  189. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  190. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  191. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  192. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  193. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  194. object parse

    Permalink
    Definition Classes
    BodyParsers
  195. implicit def request2flash(implicit request: RequestHeader): Flash

    Permalink
    Definition Classes
    Controller
  196. implicit def request2lang(implicit request: RequestHeader): Lang

    Permalink
    Definition Classes
    Controller
  197. implicit def request2session(implicit request: RequestHeader): Session

    Permalink
    Definition Classes
    Controller
  198. def serve[Id <: JsValue, T <: ReadFile[JSONSerializationPack.type, Id]](gfs: GridFS[JSONSerializationPack.type])(foundFile: Cursor[T], dispositionMode: String = CONTENT_DISPOSITION_ATTACHMENT)(implicit ec: ExecutionContext): Future[Result]

    Permalink

    Returns a future Result that serves the first matched file, or NotFound.

  199. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  200. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  201. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  202. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  203. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  204. def withCharset(mimeType: String)(implicit codec: Codec): String

    Permalink
    Definition Classes
    ContentTypes

Deprecated Value Members

  1. val TOO_MANY_REQUEST: Int

    Permalink
    Definition Classes
    Status
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Use TOO_MANY_REQUESTS instead

  2. val TooManyRequest: (MongoController.this)#Status

    Permalink
    Definition Classes
    Results
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Use TooManyRequests instead

  3. def db: DefaultDB

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use database

  4. def gridFSBodyParser[Id <: JsValue](gfs: GridFS[JSONSerializationPack.type], fileToSave: (String, Option[String]) ⇒ FileToSave[JSONSerializationPack.type, Id])(implicit readFileReader: Reads[ReadFile[JSONSerializationPack.type, Id]], ec: ExecutionContext, materialize: Materializer, ir: Reads[Id]): BodyParser[MultipartFormData[Future[ReadFile[JSONSerializationPack.type, Id]]]]

    Permalink

    Gets a body parser that will save a file sent with multipart/form-data into the given GridFS store.

    Gets a body parser that will save a file sent with multipart/form-data into the given GridFS store.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use gridFSBodyParser with Future[GridFS]

  5. def gridFSBodyParser(gfs: GridFS[JSONSerializationPack.type])(implicit readFileReader: Reads[ReadFile[JSONSerializationPack.type, JsValue]], ec: ExecutionContext, materialize: Materializer): BodyParser[MultipartFormData[Future[ReadFile[JSONSerializationPack.type, JsValue]]]]

    Permalink

    Gets a body parser that will save a file sent with multipart/form-data into the given GridFS store.

    Gets a body parser that will save a file sent with multipart/form-data into the given GridFS store.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use gridFSBodyParser with Future[GridFS]

Inherited from Controller

Inherited from Rendering

Inherited from RequestExtractors

Inherited from AcceptExtractors

Inherited from ContentTypes

Inherited from HeaderNames

Inherited from api.http.Status

Inherited from HttpProtocol

Inherited from BodyParsers

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped