AsyncResult

org.scalatra.AsyncResult
abstract class AsyncResult(implicit val scalatraContext: ScalatraContext) extends ScalatraContext

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def contentType: String

Gets the content type of the current response.

Gets the content type of the current response.

Attributes

Inherited from:
ScalatraContext
def contentType_=(contentType: String): Unit

Sets the content type of the current response.

Sets the content type of the current response.

Attributes

Inherited from:
ScalatraContext
def cookies(implicit request: HttpServletRequest): SweetCookies

Attributes

Inherited from:
CookieContext
def format_=(formatValue: String): Unit

Explicitly sets the request-scoped format. This takes precedence over whatever was inferred from the request.

Explicitly sets the request-scoped format. This takes precedence over whatever was inferred from the request.

Attributes

Inherited from:
ScalatraContext
def format_=(formatValue: Symbol): Unit

Explicitly sets the request-scoped format. This takes precedence over whatever was inferred from the request.

Explicitly sets the request-scoped format. This takes precedence over whatever was inferred from the request.

Attributes

Inherited from:
ScalatraContext
def session(key: String)(implicit request: HttpServletRequest): Any

Attributes

Inherited from:
SessionSupport
def sessionOption(implicit request: HttpServletRequest): Option[HttpSession]

The current session. If none exists, None is returned.

The current session. If none exists, None is returned.

Attributes

Inherited from:
SessionSupport
def status: Int

Gets the status code of the current response.

Gets the status code of the current response.

Attributes

Inherited from:
ScalatraContext
def status_=(code: Int): Unit

Sets the status code of the current response.

Sets the status code of the current response.

Attributes

Inherited from:
ScalatraContext

Abstract fields

val is: Future[_]

Concrete fields

val servletContext: ServletContext

Implicits

Implicits

implicit val request: HttpServletRequest
implicit val response: HttpServletResponse
implicit override val scalatraContext: ScalatraContext
implicit def timeout: Duration

Inherited implicits

Attributes

Inherited from:
CookieContext
implicit def enrichRequest(request: HttpServletRequest): RichRequest

Attributes

Inherited from:
ServletApiImplicits
implicit def enrichResponse(response: HttpServletResponse): RichResponse

Attributes

Inherited from:
ServletApiImplicits
implicit def enrichServletContext(servletContext: ServletContext): RichServletContext

Attributes

Inherited from:
ServletApiImplicits
implicit def enrichSession(session: HttpSession): RichSession

Attributes

Inherited from:
ServletApiImplicits
implicit def session(implicit request: HttpServletRequest): HttpSession

The current session. Creates a session if none exists.

The current session. Creates a session if none exists.

Attributes

Inherited from:
SessionSupport